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
|
// delete admin-user and administrator role
|
||||||
$administratorRole = $auth->getRole("administrator");
|
$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);
|
$auth->revoke($administratorRole, $user->id);
|
||||||
$user->delete();
|
$user->delete();
|
||||||
$auth->remove($administratorRole);
|
$auth->remove($administratorRole);
|
||||||
|
|||||||
Reference in New Issue
Block a user