Sign the auth token cookie and make it httpOnly

This commit is contained in:
tms
2013-02-20 17:24:19 -05:00
parent e914222cb3
commit 5616fdc475
3 changed files with 4 additions and 4 deletions

View File

@@ -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