liquid_feedback_frontend
annotate 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.
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 |
| rev | line source |
|---|---|
| bsw/jbe@5 | 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." |
| bsw/jbe@5 | 2 |
| bsw/jbe@5 | 3 ui.script{ static = "js/browser_warning.js" } |
| bsw/jbe@5 | 4 ui.script{ script = "checkBrowser(" .. encode.json(_"Your web browser is not fully supported yet." .. " " .. warning_text:gsub("\n", "\n\n")) .. ");" } |
| bsw/jbe@5 | 5 |
| bsw/jbe@5 | 6 ui.tag{ |
| bsw/jbe@5 | 7 tag = "noscript", |
| bsw/jbe@5 | 8 content = function() |
| bsw/jbe@5 | 9 slot.put(_"JavaScript is disabled or not available." .. " " .. encode.html_newlines(warning_text)) |
| bsw/jbe@5 | 10 end |
| bsw/jbe@5 | 11 } |
| bsw/jbe@5 | 12 |
| bsw/jbe@0 | 13 slot.put_into("title", encode.html(config.app_title)) |
| bsw/jbe@0 | 14 |
| bsw/jbe@0 | 15 ui.tag{ |
| bsw/jbe@0 | 16 tag = 'p', |
| bsw@3 | 17 content = _'You need to be logged in, to use this system.' |
| bsw/jbe@0 | 18 } |
| bsw/jbe@0 | 19 |
| bsw/jbe@0 | 20 ui.form{ |
| bsw/jbe@0 | 21 attr = { class = "login" }, |
| bsw/jbe@0 | 22 module = 'index', |
| bsw/jbe@0 | 23 action = 'login', |
| bsw/jbe@0 | 24 routing = { |
| bsw/jbe@0 | 25 ok = { |
| bsw/jbe@0 | 26 mode = 'redirect', |
| bsw/jbe@0 | 27 module = 'index', |
| bsw/jbe@0 | 28 view = 'index' |
| bsw/jbe@0 | 29 }, |
| bsw/jbe@0 | 30 error = { |
| bsw/jbe@0 | 31 mode = 'forward', |
| bsw/jbe@0 | 32 module = 'index', |
| bsw/jbe@0 | 33 view = 'login', |
| bsw/jbe@0 | 34 } |
| bsw/jbe@0 | 35 }, |
| bsw/jbe@0 | 36 content = function() |
| bsw/jbe@0 | 37 ui.field.text{ |
| bsw/jbe@0 | 38 attr = { id = "username_field" }, |
| bsw/jbe@5 | 39 label = _'login name', |
| bsw/jbe@0 | 40 html_name = 'login', |
| bsw/jbe@0 | 41 value = '' |
| bsw/jbe@0 | 42 } |
| bsw/jbe@0 | 43 ui.script{ script = 'document.getElementById("username_field").focus();' } |
| bsw/jbe@0 | 44 ui.field.password{ |
| bsw/jbe@0 | 45 label = _'Password', |
| bsw/jbe@0 | 46 html_name = 'password', |
| bsw/jbe@0 | 47 value = '' |
| bsw/jbe@0 | 48 } |
| bsw/jbe@0 | 49 ui.submit{ |
| bsw/jbe@0 | 50 text = _'Login' |
| bsw/jbe@0 | 51 } |
| bsw/jbe@0 | 52 end |
| bsw/jbe@0 | 53 } |