Fix #20 Enhance the console command to create users so roles can be

assigned
This commit is contained in:
Antonio Ramirez
2017-10-15 19:18:55 +02:00
parent 2d35a5bfc1
commit 299ab1e4ea
27 changed files with 135 additions and 57 deletions

View File

@ -28,10 +28,11 @@ How to Use Them
#### user/create
If password is not set, it will automatically generate it. The newly created user will receive an email message with its
new credentials.
new credentials. If a role is provided, it will assign it to the user. Is important not note, that if the role doesn't
exist, the command will create it.
```php
./yii user/create <email> <username> [password]
./yii user/create <email> <username> [password] [role]
```
#### user/confirm