liquid_feedback_frontend

view app/main/index/reset_password.lua @ 778:77aeeb16b7c7

Corrected text for unit/area view at member page
author bsw
date Fri Jun 29 00:00:59 2012 +0200 (2012-06-29)
parents 58647c8a0339
children 5a712ec1a7f1
line source
1 execute.view{ module = "index", view = "_lang_chooser" }
3 slot.put_into("title", _"Reset password")
5 slot.select("actions", function()
6 ui.link{
7 content = function()
8 ui.image{ static = "icons/16/cancel.png" }
9 slot.put(_"Cancel password reset")
10 end,
11 module = "index",
12 view = "index"
13 }
14 end)
17 local secret = param.get("secret")
19 if not secret then
20 ui.tag{
21 tag = 'p',
22 content = _'Please enter your login name. You will receive an email with a link to reset your password.'
23 }
24 ui.form{
25 attr = { class = "vertical" },
26 module = "index",
27 action = "reset_password",
28 routing = {
29 ok = {
30 mode = "redirect",
31 module = "index",
32 view = "index"
33 }
34 },
35 content = function()
36 ui.field.text{
37 label = "Login",
38 name = "login"
39 }
40 ui.submit{ text = _"Request password reset link" }
41 end
42 }
44 else
46 ui.form{
47 attr = { class = "vertical" },
48 module = "index",
49 action = "reset_password",
50 routing = {
51 ok = {
52 mode = "redirect",
53 module = "index",
54 view = "index"
55 }
56 },
57 content = function()
58 ui.tag{
59 tag = 'p',
60 content = _'Please enter the email reset code you have received:'
61 }
62 ui.field.text{
63 label = _"Reset code",
64 name = "secret",
65 value = secret
66 }
67 ui.tag{
68 tag = 'p',
69 content = _'Please enter your new password twice.'
70 }
71 ui.field.password{
72 label = "New password",
73 name = "password1"
74 }
75 ui.field.password{
76 label = "New password (repeat)",
77 name = "password2"
78 }
79 ui.submit{ text = _"Set new password" }
80 end
81 }
83 end

Impressum / About Us