liquid_feedback_frontend

changeset 351:2a20b9b547ac

While registering with invite key allow to choose the name the member already has
author bsw
date Wed Feb 29 20:12:41 2012 +0100 (2012-02-29)
parents 6c29e35cbdd3
children 07b7826487c0
files app/main/index/_action/register.lua
line diff
     1.1 --- a/app/main/index/_action/register.lua	Wed Feb 29 14:22:44 2012 +0100
     1.2 +++ b/app/main/index/_action/register.lua	Wed Feb 29 20:12:41 2012 +0100
     1.3 @@ -63,7 +63,8 @@
     1.4      return false
     1.5    end
     1.6  
     1.7 -  if Member:by_name(name) then
     1.8 +  local check_member = Member:by_name(name)
     1.9 +  if check_member and check_member.id ~= member.id then
    1.10      slot.put_into("error", _"This name is already taken, please choose another one!")
    1.11      request.redirect{
    1.12        mode   = "redirect",

Impressum / About Us