Skip to content

Commit

Permalink
Add key generation when user is made
Browse files Browse the repository at this point in the history
Should fix #60
  • Loading branch information
Jan-PieterBaert committed Sep 23, 2019
1 parent b54433f commit 3af173a
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 3af173a

Please sign in to comment.