Skip to content

Commit

Permalink
chore: remove default username from session value
Browse files Browse the repository at this point in the history
Remove default username from session value.

chore: remove useless comment
  • Loading branch information
dfranco committed Dec 29, 2023
1 parent 8a70462 commit 21d4e05
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions application/Controller/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ public function prepare(Request $request, Response $response): Response
$tplData = [];
$postData = $request->getParsedBody();

// TODO: get username from session
$this->username = $this->session->get('username', 'davide');
$this->username = $this->session->get('username');
$user = $this->userTable->findByName($this->username);

$tplData['username'] = $this->username;
Expand Down

0 comments on commit 21d4e05

Please sign in to comment.