class

RequestPasswordReset

Inherits UserFromEmail / Avram::Operation / Avram::Callbacks / Avram::ParamKeyOverride / Avram::OperationErrors / Avram::Validations / Avram::DefineAttribute / Avram::NeedyInitializer / Reference / Object

Constants

ATTRIBUTES = [email : String] of Nil
OPERATION_NEEDS = [] of Nil

Constructors

new(params : Avram::Paramable, email : String | Avram::Nothing = Avram::Nothing.new)

This is called at the end so @type will be of the subclass, and not the parent abstract class.

new(email : String | Avram::Nothing = Avram::Nothing.new)

This is called at the end so @type will be of the subclass, and not the parent abstract class.

Instance methods

attributes
Source
email
Source
run

Run validations and yield the operation and the user if valid

Source
set_attributes(email : String | Avram::Nothing = Avram::Nothing.new)

This is called at the end so @type will be of the subclass, and not the parent abstract class.

validate(user : User | Nil)
Source

Macros

param_key(key)