Merge pull request #16069 from overleaf/jdt-add-staging-trusted-writefull

Add writeful to trusted users, and fix trusted logic

GitOrigin-RevId: 526d8a77e8d5c56e94a6d671e811bfdbb74e2ac6
This commit is contained in:
Jimmy Domagala-Tang 2023-12-01 09:07:16 -05:00 committed by Copybot
parent 31fcd01e3a
commit 7341c18e0f

View file

@ -244,11 +244,11 @@ const AuthenticationController = {
captchaRequiredForLogin(req, user) { captchaRequiredForLogin(req, user) {
switch (AuthenticationController.getAuditInfo(req).captcha) { switch (AuthenticationController.getAuditInfo(req).captcha) {
case 'trusted':
case 'disabled': case 'disabled':
return false return false
case 'solved': case 'solved':
return false return false
case 'trusted':
case 'skipped': { case 'skipped': {
let required = false let required = false
if (user.lastFailedLogin) { if (user.lastFailedLogin) {