mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 14:36:52 +00:00
remove the username for the aio interface
Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
parent
3a67636092
commit
f07413a182
5 changed files with 6 additions and 18 deletions
|
|
@ -18,9 +18,8 @@ class LoginController
|
|||
}
|
||||
|
||||
public function TryLogin(Request $request, Response $response, $args) : Response {
|
||||
$userName = $request->getParsedBody()['username'];
|
||||
$password = $request->getParsedBody()['password'];
|
||||
if($this->authManager->CheckCredentials($userName, $password)) {
|
||||
if($this->authManager->CheckCredentials($password)) {
|
||||
$this->authManager->SetAuthState(true);
|
||||
return $response->withHeader('Location', '/')->withStatus(302);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue