liquid_feedback_frontend

diff app/main/index/_action/register.lua @ 391:4cc560fb92d4

Fix error in registration process
author bsw
date Mon Mar 05 20:17:25 2012 +0100 (2012-03-05)
parents cf25fef4b202
children 05b357bee352
line diff
     1.1 --- a/app/main/index/_action/register.lua	Mon Mar 05 19:53:26 2012 +0100
     1.2 +++ b/app/main/index/_action/register.lua	Mon Mar 05 20:17:25 2012 +0100
     1.3 @@ -6,6 +6,8 @@
     1.4    :optional_object_mode()
     1.5    :for_update()
     1.6    :exec()
     1.7 +  
     1.8 +local old_notify_email = member.notify_email
     1.9  
    1.10  if not member then
    1.11    slot.put_into("error", _"The code you've entered is invalid")
    1.12 @@ -195,7 +197,7 @@
    1.13    member.login = login
    1.14    member.name = name
    1.15  
    1.16 -  if notify_email ~= member.notify_email then
    1.17 +  if notify_email ~= old_notify_email then
    1.18      local success = member:set_notify_email(notify_email)
    1.19      if not success then
    1.20        slot.put_into("error", _"Can't send confirmation email")

Impressum / About Us