Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Commit

Permalink
Bugfix ... is not a valid stream resource
Browse files Browse the repository at this point in the history
Fixes a bug/warning message which occured when login failed.
  • Loading branch information
fbergkemper committed May 18, 2015
1 parent 1bd31ec commit 279fc3a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions module/Auth/src/Auth/Controller/AuthController.php
Expand Up @@ -79,11 +79,8 @@ public function loginAction()
$_SESSION['bareos']['username'] = $username;
$_SESSION['bareos']['password'] = $password;
$_SESSION['bareos']['authenticated'] = true;
$this->director->disconnect();
return $this->redirect()->toRoute('dashboard', array('action' => 'index'));
} else {

$this->director->disconnect();
session_destroy();
$err_msg = "Sorry, can not authenticate. Wrong username and/or password.";
return new ViewModel(
Expand Down

0 comments on commit 279fc3a

Please sign in to comment.