Handles user authentication.
(data,
users)
| 36 | password = validation.String()) |
| 37 | @require(users = 'ddserver.interface.user:UserManager') |
| 38 | def post_login(data, |
| 39 | users): |
| 40 | ''' Handles user authentication. ''' |
| 41 | |
| 42 | users.login(username = data.username, |
| 43 | password = data.password) |
| 44 | |
| 45 | bottle.redirect('/') |
| 46 | |
| 47 | |
| 48 |