module Pollett::Concerns::Services::ChangePassword

Public Instance Methods

call() click to toggle source
# File lib/pollett/concerns/services/change_password.rb, line 13
def call
  Pollett.config.user_model.find_by!(reset_token: token).tap do |u|
    u.update!(password: password, reset_token: nil)
  end
end