Skip to content

Commit

Permalink
Handling invalid signin
Browse files Browse the repository at this point in the history
  • Loading branch information
mhartl committed Sep 18, 2010
1 parent f16abdd commit 5de06f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/sessions_helper.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module SessionsHelper

def sign_in(user)

cookies.permanent.signed[:remember_token] = [user.id, user.salt]
end
end
1 change: 1 addition & 0 deletions app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
# created_at :datetime
# updated_at :datetime
# encrypted_password :string(255)
# salt :string(255)
#

class User < ActiveRecord::Base
Expand Down

0 comments on commit 5de06f9

Please sign in to comment.