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:
DBX12
2021-03-09 07:59:05 +00:00
committed by GitHub
parent 2504dd03b9
commit 3b9c21de42

View File

@ -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);