Quellcode durchsuchen

Throw "401 Unauthenticated" when authentication is provided but invalid

E.g. with an AppToken that has been revoked

Signed-off-by: Joas Schilling <coding@schilljs.com>
tags/v22.0.0beta1
Joas Schilling vor 3 Jahren
Ursprung
Commit
521bb30541
Es ist kein Account mit der E-Mail-Adresse des Committers verbunden
1 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
  1. 2
    0
      lib/private/User/Session.php

+ 2
- 0
lib/private/User/Session.php Datei anzeigen

@@ -599,6 +599,8 @@ class Session implements IUserSession, Emitter {

return true;
}
// If credentials were provided, they need to be valid, otherwise we do boom
throw new LoginException();
} catch (PasswordLoginForbiddenException $ex) {
// Nothing to do
}

Laden…
Abbrechen
Speichern