equal
deleted
inserted
replaced
13 } |
13 } |
14 |
14 |
15 // POST data: processing the login data |
15 // POST data: processing the login data |
16 val receive = Action { request => |
16 val receive = Action { request => |
17 |
17 |
18 val form_data = Form (tuple ("login" -> text, "password" -> text)) |
18 val form_data = Form(tuple ("login" -> text, "password" -> text)) |
19 |
19 def (login, passwd) = form_data.bindFromRequest()(request).get |
20 val (login, password) = form_data.bindFromRequest()(request).get |
|
21 |
20 |
22 Ok("Received login: " + login + " and password: " + password) |
21 Ok(s"Received login: $login and password: $passwd") |
23 } |
22 } |
24 } |
23 } |
25 |
24 |
26 |
25 |
27 |
26 |