Skip to content

Commit

Permalink
fix: #1
Browse files Browse the repository at this point in the history
  • Loading branch information
im-machakata committed Apr 7, 2024
1 parent 2e8b502 commit dbbb4d4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/Controllers/Auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ public function createSession()

public function createAccount()
{
$accounts = model(Account::class);
$formDataIsValid = $this->validate([
'Name' => 'required|min_length[3]|max_length[25]',
'Surname' => 'required|min_length[3]|max_length[25]',
Expand All @@ -98,6 +99,8 @@ public function createAccount()
return view('auth/add-user', [
// add error to existing variables
'error' => $this->validator->getErrors(),
'users' => $accounts->getUsers(),
'pager' => $accounts->pager,
...self::$ADD_USER_CONFIG,
]);
}
Expand Down

0 comments on commit dbbb4d4

Please sign in to comment.