class RequestPasswordReset

Included Modules

Defined in:

operations/request_password_reset.cr

Constant Summary

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

Constructors

Macro Summary

Instance Method Summary

Constructor Detail

def self.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.


def self.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.


Macro Detail

macro param_key(key) #

Instance Method Detail

def attributes #

[View source]
def email #

[View source]
def run #

Run validations and yield the operation and the user if valid


[View source]
def 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.


def validate(user : User | Nil) #

[View source]