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