summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/helpers/sessions_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/sessions_helper.rb b/app/helpers/sessions_helper.rb
index 8bace9e..ac62cdc 100644
--- a/app/helpers/sessions_helper.rb
+++ b/app/helpers/sessions_helper.rb
@@ -7,8 +7,8 @@ module SessionsHelper
@session.save # FIXME: error handling
@token = Session.hash_token(raw_token)
- #cookies.permanent[:remember_token] = raw_token
- cookies.permanent[:remember_token] = { value: remember_token, expires: 20.minutes.from_now.utc }
+ cookies.permanent[:remember_token] = { value: raw_token, expires: 20.minutes.from_now.utc }
+
#set the current user to be the given user
@current_user = user
end