# HG changeset patch # User bsw # Date 1330975045 -3600 # Node ID 4cc560fb92d440a93d86e2bb5810932b2cedc901 # Parent cf25fef4b202a664ff1db34d2530c23a2d5b19bb Fix error in registration process diff -r cf25fef4b202 -r 4cc560fb92d4 app/main/index/_action/register.lua --- a/app/main/index/_action/register.lua Mon Mar 05 19:53:26 2012 +0100 +++ b/app/main/index/_action/register.lua Mon Mar 05 20:17:25 2012 +0100 @@ -6,6 +6,8 @@ :optional_object_mode() :for_update() :exec() + +local old_notify_email = member.notify_email if not member then slot.put_into("error", _"The code you've entered is invalid") @@ -195,7 +197,7 @@ member.login = login member.name = name - if notify_email ~= member.notify_email then + if notify_email ~= old_notify_email then local success = member:set_notify_email(notify_email) if not success then slot.put_into("error", _"Can't send confirmation email")