Skip to content

Commit

Permalink
Fixed empty uid in default project template controller when user is not
Browse files Browse the repository at this point in the history
logged
  • Loading branch information
Ostico committed Nov 8, 2024
1 parent 655e62d commit 4fa91c4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/Controller/API/Commons/Validators/LoginValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ public function __construct( KleinController $controller ) {
}

public function _validate() {

$user = $this->controller->getUser();
if( empty( $user ) ){
if( !$this->controller->isLoggedIn() ){
throw new AuthenticationError( "Invalid Login.", 401 );
}
}
Expand Down

0 comments on commit 4fa91c4

Please sign in to comment.