mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-14 02:49:13 +00:00
fix build
This commit is contained in:
@@ -133,9 +133,11 @@ export async function sendPassword(command: UpdateSessionCommand) {
|
||||
);
|
||||
} catch (error: any) {
|
||||
if ("failedAttempts" in error && error.failedAttempts) {
|
||||
const lockoutSettings = await getLockoutSettings(
|
||||
command.organization,
|
||||
);
|
||||
const lockoutSettings = await getLockoutSettings({
|
||||
serviceUrl,
|
||||
serviceRegion,
|
||||
orgId: command.organization,
|
||||
});
|
||||
|
||||
return {
|
||||
error:
|
||||
@@ -163,7 +165,11 @@ export async function sendPassword(command: UpdateSessionCommand) {
|
||||
);
|
||||
} catch (error: any) {
|
||||
if ("failedAttempts" in error && error.failedAttempts) {
|
||||
const lockoutSettings = await getLockoutSettings(command.organization);
|
||||
const lockoutSettings = await getLockoutSettings({
|
||||
serviceUrl,
|
||||
serviceRegion,
|
||||
orgId: command.organization,
|
||||
});
|
||||
|
||||
return {
|
||||
error:
|
||||
|
Reference in New Issue
Block a user