fix: Unneccessary retry of ValidateSSO task
This commit is contained in:
@@ -11,7 +11,6 @@ import {
|
|||||||
Unique,
|
Unique,
|
||||||
} from "sequelize-typescript";
|
} from "sequelize-typescript";
|
||||||
import Logger from "@server/logging/Logger";
|
import Logger from "@server/logging/Logger";
|
||||||
import { AuthenticationError } from "../errors";
|
|
||||||
import AuthenticationProvider from "./AuthenticationProvider";
|
import AuthenticationProvider from "./AuthenticationProvider";
|
||||||
import User from "./User";
|
import User from "./User";
|
||||||
import IdModel from "./base/IdModel";
|
import IdModel from "./base/IdModel";
|
||||||
@@ -121,7 +120,7 @@ class UserAuthentication extends IdModel {
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (error instanceof AuthenticationError) {
|
if (error.id === "authentication_required") {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user