Class dektrium\user\commands\CreateController
Inheritance | dektrium\user\commands\CreateController » yii\console\Controller |
---|
Creates new user account.
Public Methods
Method | Description | Defined 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
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 ) | ||
string | Email address |
|
$username | string | Username |
$password | null|string | Password (if null it will be generated automatically) |