liquid_feedback_frontend

changeset 354:14929096532c

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

Impressum / About Us