mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-05-31 07:50:08 +00:00
remove the username for the aio interface
Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
@@ -12,12 +12,8 @@ class AuthManager {
|
||||
$this->configurationManager = $configurationManager;
|
||||
}
|
||||
|
||||
public function CheckCredentials(string $username, string $password) : bool {
|
||||
if($username === $this->configurationManager->GetUserName()) {
|
||||
return hash_equals($this->configurationManager->GetPassword(), $password);
|
||||
}
|
||||
|
||||
return false;
|
||||
public function CheckCredentials(string $password) : bool {
|
||||
return hash_equals($this->configurationManager->GetPassword(), $password);
|
||||
}
|
||||
|
||||
public function CheckToken(string $token) : bool {
|
||||
|
||||
Reference in New Issue
Block a user