Class dektrium\user\models\SettingsForm

Inheritancedektrium\user\models\SettingsForm » yii\base\Model
Uses Traitsdektrium\user\traits\ModuleTrait

SettingsForm gets user's username, email and password and changes them.

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$mailer dektrium\user\Mailer dektrium\user\models\SettingsForm

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
defaultEmailChange() Sends a confirmation message to user's email address with link to confirm changing of email. dektrium\user\models\SettingsForm
insecureEmailChange() Changes user's email address to given without any confirmation. dektrium\user\models\SettingsForm
secureEmailChange() Sends a confirmation message to both old and new email addresses with link to confirm changing of email. dektrium\user\models\SettingsForm

Property Details

$current_password public property
public string $current_password null
$email public property
public string $email null
$mailer protected property
protected dektrium\user\Mailer $mailer null
$new_password public property
public string $new_password null
$username public property
public string $username null

Method Details

__construct() public method

public void __construct ( dektrium\user\Mailer $mailer, $config = [] )
$mailer
$config
attributeLabels() public method

public void attributeLabels ( )
defaultEmailChange() protected method

Sends a confirmation message to user's email address with link to confirm changing of email.

protected void defaultEmailChange ( )
formName() public method

public void formName ( )
getUser() public method

public dektrium\user\models\User getUser ( )
insecureEmailChange() protected method

Changes user's email address to given without any confirmation.

protected void insecureEmailChange ( )
rules() public method

public void rules ( )
save() public method

Saves new account settings.

public bool save ( )
secureEmailChange() protected method

Sends a confirmation message to both old and new email addresses with link to confirm changing of email.

protected void secureEmailChange ( )
throws \yii\base\InvalidConfigException