add httponly constraint to user_name cookie #2621

This commit is contained in:
r888888888
2016-07-12 12:30:01 -07:00
parent c2d09af089
commit 8ea992168b

View File

@@ -18,7 +18,8 @@ class SessionCreator
if remember.present?
cookies.permanent.signed[:user_name] = {
:value => user.name,
:secure => secure
:secure => secure,
:httponly => true
}
cookies.permanent[:password_hash] = {
:value => user.bcrypt_cookie_password_hash,