controller/users: add logout route

This commit is contained in:
Sam Dodrill 2015-01-07 20:59:10 -08:00
parent 70c130d978
commit 020e9e7712
1 changed files with 6 additions and 0 deletions

View File

@ -101,3 +101,9 @@ class User extends lapis.Application
@title = "Login failure"
return status: 500, "bad password"
}
[logout: "/logout"]: =>
@session.user = nil
@session.sippw = nil
return redirect_to: "/login"