# HG changeset patch # User bsw # Date 1330976130 -3600 # Node ID 05b357bee3525190b7fcf3910842702ecd1ddd90 # Parent 4cc560fb92d440a93d86e2bb5810932b2cedc901 Fix wrong order in registration action diff -r 4cc560fb92d4 -r 05b357bee352 app/main/index/_action/register.lua --- a/app/main/index/_action/register.lua Mon Mar 05 20:17:25 2012 +0100 +++ b/app/main/index/_action/register.lua Mon Mar 05 20:35:30 2012 +0100 @@ -7,8 +7,6 @@ :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") request.redirect{ @@ -19,6 +17,8 @@ return false end +local old_notify_email = member.notify_email + local notify_email = param.get("notify_email") if not config.locked_profile_fields.notify_email and notify_email then