Skip to content

Commit

Permalink
added active_for_authentication method in the user.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
Aniket Kaushik committed Feb 9, 2022
1 parent 093cbb8 commit 0eaf587
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,8 @@ def full_name
def admin?
self.has_role?(:admin) || self.has_role?(:owner)
end

def active_for_authentication?
super and self.kept?
end
end

0 comments on commit 0eaf587

Please sign in to comment.