liquid_feedback_frontend
diff app/main/index/_action/send_login.lua @ 990:77873f08d94f
Completed support for check delegations, removed debug code
| author | bsw |
|---|---|
| date | Sat Apr 20 19:26:58 2013 +0200 (2013-04-20) |
| parents | 5a712ec1a7f1 |
| children | 130eed8f7a79 |
line diff
1.1 --- a/app/main/index/_action/send_login.lua Sat Apr 20 18:51:28 2013 +0200 1.2 +++ b/app/main/index/_action/send_login.lua Sat Apr 20 19:26:58 2013 +0200 1.3 @@ -3,7 +3,8 @@ 1.4 local email = param.get("email") 1.5 1.6 local members = Member:new_selector() 1.7 - :add_where{ "notify_email = ? OR notify_email_unconfirmed = ?", email, email } 1.8 + :add_where{ "split_part(notify_email, '@', 1) = split_part(?, '@', 1)", email } 1.9 + :add_where{ "lower(split_part(notify_email, '@', 2)) = lower(split_part(?, '@', 2))", email } 1.10 :add_where("login_recovery_expiry ISNULL OR login_recovery_expiry < now()") 1.11 :exec() 1.12 1.13 @@ -28,9 +29,6 @@ 1.14 end 1.15 end) 1.16 1.17 -trace.debug(content) 1.18 -if true then return end 1.19 - 1.20 local success = net.send_mail{ 1.21 envelope_from = config.mail_envelope_from, 1.22 from = config.mail_from, 1.23 @@ -40,3 +38,5 @@ 1.24 content_type = "text/plain; charset=UTF-8", 1.25 content = content 1.26 } 1.27 + 1.28 +slot.put_into("notice", _"Your request has been processed.")