The module comes with a set of console commands to facilitate some of the most common actions during development time:
user/createto create a new user
user/confirmto confirm a user
user/deleteto delete a user
user/passwordto update a user's password
To enable the commands add the following configuration details to your console config of your application:
// ... 'modules' => [ 'user' => Da\User\Module::class, ]
How to Use Them
If password is not set, it will automatically generate it. The newly created user will receive an email message with its new credentials.
./yii user/create <email> <username> [password]
You can confirm a user whether by using its email or username.
./yii user/confirm <email|username>
You can delete a user whether by using its email or username.
./yii user/delete <email|username>
You can update a user's password whether by using its email or username.
./yii user/password <email|username> <password>
© 2amigos 2013-2017