liquid_feedback_frontend
diff app/main/index/_action/login.lua @ 203:5e35add677ee
Added support for member.locked and account expiry mechanism. Small corrections.
| author | bsw |
|---|---|
| date | Tue Jan 25 13:43:46 2011 +0100 (2011-01-25) |
| parents | f62c61bd912c |
| children | 65a1f7a01e7b |
line diff
1.1 --- a/app/main/index/_action/login.lua Mon Nov 08 15:49:23 2010 +0100 1.2 +++ b/app/main/index/_action/login.lua Tue Jan 25 13:43:46 2011 +0100 1.3 @@ -1,10 +1,10 @@ 1.4 local member = Member:by_login_and_password(param.get('login'), param.get('password')) 1.5 1.6 if member then 1.7 + member.last_login = "now" 1.8 + member.active = true 1.9 + member:save() 1.10 app.session.member = member 1.11 - if config.last_login_enabled then 1.12 - db:query{ "UPDATE member SET last_login = now() WHERE id = ?", member.id } 1.13 - end 1.14 app.session:save() 1.15 slot.select("notice", function() 1.16 ui.tag{ content = _'Login successful!' }