Class: UserPasswordExpirer

Inherits:
Object
  • Object
show all
Defined in:
app/services/user_password_expirer.rb

Class Method Summary collapse

Class Method Details

.expire_user_password(user) ⇒ Object



4
5
6
# File 'app/services/user_password_expirer.rb', line 4

def self.expire_user_password(user)
  user.user_password&.update!(password_expired_at: Time.zone.now)
end