浏览代码

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 3 年前
父节点
当前提交
521bb30541
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2
    0
      lib/private/User/Session.php

+ 2
- 0
lib/private/User/Session.php 查看文件

@@ -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
}

正在加载...
取消
保存