Skip to content

Commit

Permalink
Fixes error when traceable token not found during expiring
Browse files Browse the repository at this point in the history
  • Loading branch information
John Chlark Sumatra committed Jan 20, 2016
1 parent 60698a8 commit 7cc7a68
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/devise_security_extension/models/session_traceable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ def update_traceable_token(token)
#
def expire_session_token(token)
record = find_traceable_by_token(token)
return unless record
record.unique_auth_token_valid = false
record.save(validate: false)
end
Expand Down

0 comments on commit 7cc7a68

Please sign in to comment.