liquid_feedback_frontend

annotate app/main/member/settings.lua @ 9:0ee1e0c42d4c

Version beta5

Minor security fix: Added missing security filter for admin section. Reading of member listing including login names was possible for all users. Write access has not been possible though.

Changing of name and login is possible while a history of these changes is written and accessible by all users.

Statistics shown in area list

Trimming of user input also converts multiple whitespaces to single space character.
author bsw
date Mon Jan 04 12:00:00 2010 +0100 (2010-01-04)
parents
children 72c5e0ee7c98
rev   line source
bsw@9 1
bsw@9 2 slot.put_into("title", _"Settings")
bsw@9 3
bsw@9 4 slot.select("actions", function()
bsw@9 5 ui.link{
bsw@9 6 content = function()
bsw@9 7 ui.image{ static = "icons/16/cancel.png" }
bsw@9 8 slot.put(_"Cancel")
bsw@9 9 end,
bsw@9 10 module = "index",
bsw@9 11 view = "index"
bsw@9 12 }
bsw@9 13 end)
bsw@9 14
bsw@9 15 ui.heading{ content = _"Change your name" }
bsw@9 16 util.help("member.settings.name", _"Change name")
bsw@9 17
bsw@9 18 ui.form{
bsw@9 19 attr = { class = "vertical" },
bsw@9 20 module = "member",
bsw@9 21 action = "update_name",
bsw@9 22 routing = {
bsw@9 23 ok = {
bsw@9 24 mode = "redirect",
bsw@9 25 module = "index",
bsw@9 26 view = "index"
bsw@9 27 }
bsw@9 28 },
bsw@9 29 content = function()
bsw@9 30 ui.field.text{ label = _"Name", name = "name", value = app.session.member.name }
bsw@9 31 ui.submit{ value = _"Change name" }
bsw@9 32 end
bsw@9 33 }
bsw@9 34
bsw@9 35 ui.heading{ content = _"Change your login" }
bsw@9 36 util.help("member.settings.login", _"Change login")
bsw@9 37
bsw@9 38 ui.form{
bsw@9 39 attr = { class = "vertical" },
bsw@9 40 module = "member",
bsw@9 41 action = "update_login",
bsw@9 42 routing = {
bsw@9 43 ok = {
bsw@9 44 mode = "redirect",
bsw@9 45 module = "index",
bsw@9 46 view = "index"
bsw@9 47 }
bsw@9 48 },
bsw@9 49 content = function()
bsw@9 50 ui.field.text{ label = _"Login", name = "login", value = app.session.member.login }
bsw@9 51 ui.submit{ value = _"Change login" }
bsw@9 52 end
bsw@9 53 }
bsw@9 54
bsw@9 55 ui.heading{ content = _"Change your password" }
bsw@9 56 util.help("member.settings.password", _"Change password")
bsw@9 57
bsw@9 58 ui.form{
bsw@9 59 attr = { class = "vertical" },
bsw@9 60 module = "member",
bsw@9 61 action = "update_password",
bsw@9 62 routing = {
bsw@9 63 ok = {
bsw@9 64 mode = "redirect",
bsw@9 65 module = "index",
bsw@9 66 view = "index"
bsw@9 67 }
bsw@9 68 },
bsw@9 69 content = function()
bsw@9 70 ui.field.password{ label = _"Old password", name = "old_password" }
bsw@9 71 ui.field.password{ label = _"New password", name = "new_password1" }
bsw@9 72 ui.field.password{ label = _"Repeat new password", name = "new_password2" }
bsw@9 73 ui.submit{ value = _"Change password" }
bsw@9 74 end
bsw@9 75 }

Impressum / About Us