liquid_feedback_frontend

diff app/main/index/_action/login.lua @ 174:f62c61bd912c

Made saving of last_login configurable
author bsw
date Sun Oct 31 00:35:11 2010 +0200 (2010-10-31)
parents ccdf197b3f9b
children 5e35add677ee
line diff
     1.1 --- a/app/main/index/_action/login.lua	Sun Oct 31 00:22:39 2010 +0200
     1.2 +++ b/app/main/index/_action/login.lua	Sun Oct 31 00:35:11 2010 +0200
     1.3 @@ -2,7 +2,9 @@
     1.4  
     1.5  if member then
     1.6    app.session.member = member
     1.7 -  db:query{ "UPDATE member SET last_login = now() WHERE id = ?", member.id }
     1.8 +  if config.last_login_enabled then
     1.9 +    db:query{ "UPDATE member SET last_login = now() WHERE id = ?", member.id }
    1.10 +  end
    1.11    app.session:save()
    1.12    slot.select("notice", function()
    1.13      ui.tag{ content = _'Login successful!' }

Impressum / About Us