Skip to content

Commit

Permalink
Merge pull request #61 from ZeusWPI/Jan-PieterBaert-patch-1
Browse files Browse the repository at this point in the history
Add key generation when user is made
  • Loading branch information
redfast00 committed Sep 23, 2019
2 parents b54433f + 3af173a commit af0043d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def calculate_balance!
def self.from_omniauth(auth)
where(name: auth.uid).first_or_create do |user|
user.name = auth.uid
user.generate_key!
end
end

Expand Down

0 comments on commit af0043d

Please sign in to comment.