mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 09:10:25 +08:00
Merge pull request #215 from tms/auth-token-changes
Sign the auth token cookie and make it httpOnly
This commit is contained in:
commit
84cb08e035
3 changed files with 4 additions and 4 deletions
|
@ -38,7 +38,7 @@ describe SessionController do
|
|||
end
|
||||
|
||||
it 'sets a cookie with the auth token' do
|
||||
cookies[:_t].should == user.auth_token
|
||||
cookies.signed[:_t].should == user.auth_token
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue