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 f5daf50 commit e89a93e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@ def admin?
self.has_role?(:admin) || self.has_role?(:owner)
end

# # check whether the user present is in active state or not
# def active_for_authentication?
# super and self.active?
# end
def active_for_authentication?
super and self.kept?
end
end

0 comments on commit e89a93e

Please sign in to comment.