Implement login-reset-password.ftl

This commit is contained in:
Joseph Garrone
2021-03-07 14:57:53 +01:00
parent 85fdaa2f22
commit 740d9b7af5
6 changed files with 109 additions and 7 deletions

View File

@ -10,7 +10,7 @@ import type { LanguageLabel } from "./i18n/KcLanguageTag";
type ExtractAfterStartingWith<Prefix extends string, StrEnum> =
StrEnum extends `${Prefix}${infer U}` ? U : never;
export type KcContext = KcContext.Login | KcContext.Register | KcContext.Info | KcContext.Error;
export type KcContext = KcContext.Login | KcContext.Register | KcContext.Info | KcContext.Error | KcContext.LoginResetPassword;
export declare namespace KcContext {
export type Template = {
@ -43,7 +43,7 @@ export declare namespace KcContext {
showUsername: boolean;
showResetCredentials: boolean;
showTryAnotherWayLink: boolean;
attemptedUsername?: boolean;
attemptedUsername?: string;
};
scripts: string[];
message?: {
@ -138,6 +138,13 @@ export declare namespace KcContext {
}
};
export type LoginResetPassword = Template & {
pageId: "login-reset-password.ftl";
realm: {
loginWithEmailAllowed: boolean;
}
};
}
doExtends<KcContext["pageId"], PageId>();