discourse/app/services/user_password_expirer.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
173 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class UserPasswordExpirer
def self.expire_user_password(user)
user.user_password&.update!(password_expired_at: Time.zone.now)
end
end