module Authpwn::UserModel

Included by the model class that represents users.

Parts of the codebase assume the model will be named User.

Public Instance Methods

auth_bounce_reason(crdential) click to toggle source

Checks if a credential is acceptable for authenticating a user.

Returns nil if the credential is acceptable, or a String containing a user-visible reason why the credential is not acceptable.

# File lib/authpwn_rails/user_model.rb, line 102
def auth_bounce_reason(crdential)
  nil
end
to_param() click to toggle source

Use e-mails instead of exposing ActiveRecord IDs.

# File lib/authpwn_rails/user_model.rb, line 107
def to_param
  exuid
end