# HG changeset patch # User bsw # Date 1330542933 -3600 # Node ID 14929096532c34e1902faf684081b66b30fd3bc2 # Parent 5bebbc39f629c58ed4dbb772001e8477ee949822 While registering with invite key allow to choose the login the member already has diff -r 5bebbc39f629 -r 14929096532c app/main/index/_action/register.lua --- a/app/main/index/_action/register.lua Wed Feb 29 20:14:39 2012 +0100 +++ b/app/main/index/_action/register.lua Wed Feb 29 20:15:33 2012 +0100 @@ -117,7 +117,8 @@ return false end - if Member:by_login(login) then + local check_member = Member:by_login(login) + if check_member and check_member.id ~= member.id then slot.put_into("error", _"This login is already taken, please choose another one!") request.redirect{ mode = "redirect",