Skip to content

Commit

Permalink
fix: user controller has static username (fixes #181) (#182)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfavetti committed Oct 28, 2023
1 parent 6cac7b7 commit e32f635
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/Controller/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function prepare(Request $request, Response $response): Response
$this->username = $this->session->get('username', 'davide');
$user = $this->userTable->findByName($this->username);

$tplData['username'] = 'davide';
$tplData['username'] = $this->username;
$tplData['email'] = $user->getEmail();

// Check if password reset have been requested
Expand Down

0 comments on commit e32f635

Please sign in to comment.