controller/users: add logout route
This commit is contained in:
parent
70c130d978
commit
020e9e7712
|
@ -101,3 +101,9 @@ class User extends lapis.Application
|
||||||
@title = "Login failure"
|
@title = "Login failure"
|
||||||
return status: 500, "bad password"
|
return status: 500, "bad password"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[logout: "/logout"]: =>
|
||||||
|
@session.user = nil
|
||||||
|
@session.sippw = nil
|
||||||
|
|
||||||
|
return redirect_to: "/login"
|
||||||
|
|
Loading…
Reference in New Issue