Age | Commit message (Collapse) | Author |
|
|
|
* set locale based on request header
* enforce locale path prefix when current locale is not the default
* note: don't use root_path anymore, instead use home_path
|
|
|
|
Currently it expects both the session and the token to be cleared. This might change. But we'll always have a definition of what it means to logout we can test this way.
|
|
So the #create and #update actions were not needed anymore. Also removed the tests
|
|
|
|
* now we return the user id on login
* allow a destroy request for logging out
* added test for api sessions controller
|
|
Also added #assert_json_error to tests.
|
|
|
|
also commented the sessions controller test a bit and fixed it
|
|
|
|
Also removed a few hooks to User.current. Will replace with current_user
|
|
handshake.to_json now returns what we want.
|
|
|