liquid_feedback_frontend
diff app/main/admin/_action/member_update.lua @ 244:df2d7ba9cc9b
Changed field active to activated in admin member frontend (according to change in core-2)
| author | bsw |
|---|---|
| date | Fri Dec 30 03:06:23 2011 +0100 (2011-12-30) |
| parents | 46351752814f |
| children | c587d8762e62 |
line diff
1.1 --- a/app/main/admin/_action/member_update.lua Fri Dec 30 03:04:17 2011 +0100 1.2 +++ b/app/main/admin/_action/member_update.lua Fri Dec 30 03:06:23 2011 +0100 1.3 @@ -1,6 +1,10 @@ 1.4 local member = Member:by_id(param.get_id()) or Member:new() 1.5 1.6 -param.update(member, "login", "admin", "name", "active") 1.7 +param.update(member, "login", "admin", "name") 1.8 + 1.9 +if param.get("activated", atom.boolean) then 1.10 + member.activated = "now" 1.11 +end 1.12 1.13 local password = param.get("password") 1.14 if password == "********" or #password == 0 then 1.15 @@ -22,4 +26,4 @@ 1.16 else 1.17 slot.put_into("notice", _"Member successfully registered") 1.18 end 1.19 -end 1.20 \ No newline at end of file 1.21 +end