liquid_feedback_frontend

changeset 940:064fcd8f784f

Fixed handling of login and name when fields locked while registration
author bsw
date Mon Nov 05 17:29:37 2012 +0100 (2012-11-05)
parents 0c8a1851181d
children 26a6d3330bab
files app/main/index/_action/register.lua
line diff
     1.1 --- a/app/main/index/_action/register.lua	Sun Nov 04 18:52:10 2012 +0100
     1.2 +++ b/app/main/index/_action/register.lua	Mon Nov 05 17:29:37 2012 +0100
     1.3 @@ -195,8 +195,13 @@
     1.4      return false
     1.5    end
     1.6  
     1.7 -  member.login = login
     1.8 -  member.name = name
     1.9 +  if not config.locked_profile_fields.login
    1.10 +    member.login = login
    1.11 +  end
    1.12 +
    1.13 +  if not config.locked_profile_fields.name
    1.14 +    member.name = name
    1.15 +  end
    1.16  
    1.17    if notify_email ~= old_notify_email then
    1.18      local success = member:set_notify_email(notify_email)

Impressum / About Us