Skip to content

Commit

Permalink
cosign user_key hack
Browse files Browse the repository at this point in the history
  • Loading branch information
gkostin1966 committed Jul 27, 2018
1 parent c9bea7d commit e7665c2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/devise/strategies/keycard_authenticatable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@ def identity
end

def existing_user
User.find_by(user_key: user_eid).tap do |user|
debug_log "Found user: '#{user_eid}'" if user
user_key = /@/.match?(user_eid) ? user_eid : "#{user_eid}@umich.edu"
User.find_by(user_key: user_key).tap do |user|
debug_log "Found user: '#{user_key}'" if user
end
end

Expand Down

0 comments on commit e7665c2

Please sign in to comment.