Class dektrium\user\commands\CreateController

Inheritancedektrium\user\commands\CreateController » yii\console\Controller

Creates new user account.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
actionIndex() This command creates new user account. If password is not set, this command will generate new 8-char password. dektrium\user\commands\CreateController

Method Details

actionIndex() public method

This command creates new user account. If password is not set, this command will generate new 8-char password.

After saving user to database, this command uses mailer component to send credentials (username and password) to user via email.

public void actionIndex ( $email, $username, $password null )
$email string

Email address

$username string

Username

$password null|string

Password (if null it will be generated automatically)