Fix documentation first-steps.md
The column is named `username` and not `name` in version 1.5.1. Corrected the documentation to reflect that.
This commit is contained in:
@ -65,7 +65,7 @@ Put this in your migration:
|
||||
|
||||
// delete admin-user and administrator role
|
||||
$administratorRole = $auth->getRole("administrator");
|
||||
$user = \Da\User\Model\User::findOne(['name'=>"admin"]);
|
||||
$user = \Da\User\Model\User::findOne(['username'=>"admin"]);
|
||||
$auth->revoke($administratorRole, $user->id);
|
||||
$user->delete();
|
||||
$auth->remove($administratorRole);
|
||||
|
||||
Reference in New Issue
Block a user