liquid_feedback_frontend

view app/main/index/login.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 afd9f769c7ae
children 77d58efe99fd
line source
1 local warning_text = _"Some JavaScript based functions (voting in particular) will not work.\nFor this beta, please use a current version of Firefox, Safari, Opera(?), Konqueror or another (more) standard compliant browser.\nAlternative access without JavaScript will be available soon."
3 ui.script{ static = "js/browser_warning.js" }
4 ui.script{ script = "checkBrowser(" .. encode.json(_"Your web browser is not fully supported yet." .. " " .. warning_text:gsub("\n", "\n\n")) .. ");" }
6 ui.tag{
7 tag = "noscript",
8 content = function()
9 slot.put(_"JavaScript is disabled or not available." .. " " .. encode.html_newlines(warning_text))
10 end
11 }
13 slot.put_into("title", encode.html(config.app_title))
15 ui.tag{
16 tag = 'p',
17 content = _'You need to be logged in, to use this system.'
18 }
20 ui.form{
21 attr = { class = "login" },
22 module = 'index',
23 action = 'login',
24 routing = {
25 ok = {
26 mode = 'redirect',
27 module = 'index',
28 view = 'index'
29 },
30 error = {
31 mode = 'forward',
32 module = 'index',
33 view = 'login',
34 }
35 },
36 content = function()
37 ui.field.text{
38 attr = { id = "username_field" },
39 label = _'login name',
40 html_name = 'login',
41 value = ''
42 }
43 ui.script{ script = 'document.getElementById("username_field").focus();' }
44 ui.field.password{
45 label = _'Password',
46 html_name = 'password',
47 value = ''
48 }
49 ui.submit{
50 text = _'Login'
51 }
52 end
53 }

Impressum / About Us