class UpdateCurrentUser
- UpdateCurrentUser
- User::SaveOperation
- Avram::SaveOperation(User)
- Reference
- Object
Included Modules
- Mixins::ValidateNotPwned
- Mixins::ValidateUser
- Shield::EndUserLoginsOnPasswordChange
- Shield::NotifyPasswordChangeIfSet
- Shield::SaveBearerLoginUserSettings
- Shield::SaveLoginUserSettings
- Shield::SaveUserSettings
- Shield::SetPasswordDigestFromPassword
- Shield::SetUserEmail
- Shield::UpdateEmailConfirmationUser
- Shield::UpdateUser
- Shield::ValidatePassword
- Shield::ValidateUser
Defined in:
lib/shield/src/presets/email_confirmation.croperations/update_current_user.cr
Instance Method Summary
Instance methods inherited from class User::SaveOperation
attributes
attributes,
created_at
created_at,
created_at=(_value)
created_at=,
email
email,
email=(_value)
email=,
first_name
first_name,
first_name=(_value)
first_name=,
id
id,
id=(_value)
id=,
last_name
last_name,
last_name=(_value)
last_name=,
level
level,
level=(_value)
level=,
password_digest
password_digest,
password_digest=(_value)
password_digest=,
permitted_params : Hash(String, Array(String) | String)
permitted_params,
required_attributes
required_attributes,
set_attributes(email : String | Avram::Nothing = IGNORE, password_digest : String | Avram::Nothing = IGNORE, settings : UserSettings | Avram::Nothing = IGNORE, id : Int64 | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, first_name : String | Avram::Nothing = IGNORE, last_name : String | Avram::Nothing = IGNORE, level : UserLevel | Avram::Nothing = IGNORE, updated_at : Time | Avram::Nothing = IGNORE)
set_attributes,
set_created_at_from_param(_value)
set_created_at_from_param,
set_email_from_param(_value)
set_email_from_param,
set_first_name_from_param(_value)
set_first_name_from_param,
set_id_from_param(_value)
set_id_from_param,
set_last_name_from_param(_value)
set_last_name_from_param,
set_level_from_param(_value)
set_level_from_param,
set_password_digest_from_param(_value)
set_password_digest_from_param,
set_settings_from_param(_value : String)set_settings_from_param(_value : UserSettings) set_settings_from_param, set_updated_at_from_param(_value) set_updated_at_from_param, settings settings, settings=(_value) settings=, updated_at updated_at, updated_at=(_value) updated_at=
Constructor methods inherited from class User::SaveOperation
new(record : T, params : Avram::Paramable, email : String | Avram::Nothing = IGNORE, password_digest : String | Avram::Nothing = IGNORE, settings : UserSettings | Avram::Nothing = IGNORE, id : Int64 | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, first_name : String | Avram::Nothing = IGNORE, last_name : String | Avram::Nothing = IGNORE, level : UserLevel | Avram::Nothing = IGNORE, updated_at : Time | Avram::Nothing = IGNORE)new(params : Avram::Paramable, email : String | Avram::Nothing = IGNORE, password_digest : String | Avram::Nothing = IGNORE, settings : UserSettings | Avram::Nothing = IGNORE, id : Int64 | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, first_name : String | Avram::Nothing = IGNORE, last_name : String | Avram::Nothing = IGNORE, level : UserLevel | Avram::Nothing = IGNORE, updated_at : Time | Avram::Nothing = IGNORE)
new(record : T, email : String | Avram::Nothing = IGNORE, password_digest : String | Avram::Nothing = IGNORE, settings : UserSettings | Avram::Nothing = IGNORE, id : Int64 | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, first_name : String | Avram::Nothing = IGNORE, last_name : String | Avram::Nothing = IGNORE, level : UserLevel | Avram::Nothing = IGNORE, updated_at : Time | Avram::Nothing = IGNORE)
new(email : String | Avram::Nothing = IGNORE, password_digest : String | Avram::Nothing = IGNORE, settings : UserSettings | Avram::Nothing = IGNORE, id : Int64 | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, first_name : String | Avram::Nothing = IGNORE, last_name : String | Avram::Nothing = IGNORE, level : UserLevel | Avram::Nothing = IGNORE, updated_at : Time | Avram::Nothing = IGNORE) new
Class methods inherited from class User::SaveOperation
create(params, email : String | Avram::Nothing = IGNORE, password_digest : String | Avram::Nothing = IGNORE, settings : UserSettings | Avram::Nothing = IGNORE, id : Int64 | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, first_name : String | Avram::Nothing = IGNORE, last_name : String | Avram::Nothing = IGNORE, level : UserLevel | Avram::Nothing = IGNORE, updated_at : Time | Avram::Nothing = IGNORE, &)create(email : String | Avram::Nothing = IGNORE, password_digest : String | Avram::Nothing = IGNORE, settings : UserSettings | Avram::Nothing = IGNORE, id : Int64 | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, first_name : String | Avram::Nothing = IGNORE, last_name : String | Avram::Nothing = IGNORE, level : UserLevel | Avram::Nothing = IGNORE, updated_at : Time | Avram::Nothing = IGNORE, &)
create(params : Hash, **named_args, &) create, create!(params, email : String | Avram::Nothing = IGNORE, password_digest : String | Avram::Nothing = IGNORE, settings : UserSettings | Avram::Nothing = IGNORE, id : Int64 | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, first_name : String | Avram::Nothing = IGNORE, last_name : String | Avram::Nothing = IGNORE, level : UserLevel | Avram::Nothing = IGNORE, updated_at : Time | Avram::Nothing = IGNORE)
create!(email : String | Avram::Nothing = IGNORE, password_digest : String | Avram::Nothing = IGNORE, settings : UserSettings | Avram::Nothing = IGNORE, id : Int64 | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, first_name : String | Avram::Nothing = IGNORE, last_name : String | Avram::Nothing = IGNORE, level : UserLevel | Avram::Nothing = IGNORE, updated_at : Time | Avram::Nothing = IGNORE)
create!(params : Hash, **named_args) create!, update(record : T, with params, email : String | Avram::Nothing = IGNORE, password_digest : String | Avram::Nothing = IGNORE, settings : UserSettings | Avram::Nothing = IGNORE, id : Int64 | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, first_name : String | Avram::Nothing = IGNORE, last_name : String | Avram::Nothing = IGNORE, level : UserLevel | Avram::Nothing = IGNORE, updated_at : Time | Avram::Nothing = IGNORE, &)
update(record : T, email : String | Avram::Nothing = IGNORE, password_digest : String | Avram::Nothing = IGNORE, settings : UserSettings | Avram::Nothing = IGNORE, id : Int64 | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, first_name : String | Avram::Nothing = IGNORE, last_name : String | Avram::Nothing = IGNORE, level : UserLevel | Avram::Nothing = IGNORE, updated_at : Time | Avram::Nothing = IGNORE, &)
update(record : T, params : Hash, **named_args, &) update, update!(record : T, with params, email : String | Avram::Nothing = IGNORE, password_digest : String | Avram::Nothing = IGNORE, settings : UserSettings | Avram::Nothing = IGNORE, id : Int64 | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, first_name : String | Avram::Nothing = IGNORE, last_name : String | Avram::Nothing = IGNORE, level : UserLevel | Avram::Nothing = IGNORE, updated_at : Time | Avram::Nothing = IGNORE)
update!(record : T, email : String | Avram::Nothing = IGNORE, password_digest : String | Avram::Nothing = IGNORE, settings : UserSettings | Avram::Nothing = IGNORE, id : Int64 | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, first_name : String | Avram::Nothing = IGNORE, last_name : String | Avram::Nothing = IGNORE, level : UserLevel | Avram::Nothing = IGNORE, updated_at : Time | Avram::Nothing = IGNORE)
update!(record : T, params : Hash, **named_args) update!