Fix some bugs
This commit is contained in:
parent
62e4af2c78
commit
533105d63a
@ -7,7 +7,8 @@
|
||||
"realm": {
|
||||
"loginWithEmailAllowed": ${realm.loginWithEmailAllowed?c},
|
||||
"rememberMe": ${realm.rememberMe?c},
|
||||
"resetPasswordAllowed": ${realm.resetPasswordAllowed?c}
|
||||
"resetPasswordAllowed": ${realm.resetPasswordAllowed?c},
|
||||
"registrationAllowed": ${realm.registrationAllowed?c}
|
||||
},
|
||||
"auth": (function (){
|
||||
|
||||
@ -76,6 +77,6 @@
|
||||
</#if>
|
||||
return false;
|
||||
|
||||
})
|
||||
})()
|
||||
}
|
||||
</script>
|
@ -32,7 +32,7 @@
|
||||
</#if>
|
||||
return false;
|
||||
|
||||
}),
|
||||
})(),
|
||||
"recaptchaRequired": (function (){
|
||||
|
||||
<#if passwordRequired??>
|
||||
@ -40,7 +40,7 @@
|
||||
</#if>
|
||||
return false;
|
||||
|
||||
}),
|
||||
})(),
|
||||
"recaptchaSiteKey": "${recaptchaSiteKey}"
|
||||
}
|
||||
</script>
|
@ -32,6 +32,8 @@ export const Login = memo((props: LoginProps) => {
|
||||
kcContext.pageBasename === "login.ftl"
|
||||
);
|
||||
|
||||
console.log(kcContext);
|
||||
|
||||
return kcContext;
|
||||
|
||||
});
|
||||
@ -154,7 +156,7 @@ export const Login = memo((props: LoginProps) => {
|
||||
displayInfoNode={
|
||||
(
|
||||
realm.password &&
|
||||
realm.resetPasswordAllowed &&
|
||||
realm.registrationAllowed &&
|
||||
!registrationDisabled
|
||||
) &&
|
||||
<div id="kc-registration">
|
||||
|
@ -113,6 +113,8 @@ export const Template = memo((props: TemplateProps) => {
|
||||
return (
|
||||
<div className={cx(kcProperties.kcLoginClass)}>
|
||||
|
||||
<h1>REACT</h1>
|
||||
|
||||
<div id="kc-header" className={cx(kcProperties.kcHeaderClass)}>
|
||||
<div id="kc-header-wrapper" className={cx(kcProperties.kcHeaderWrapperClass)}>
|
||||
{t("loginTitleHtml", realm.displayNameHtml)}
|
||||
|
@ -62,6 +62,7 @@ export declare namespace KcContext {
|
||||
loginWithEmailAllowed: boolean;
|
||||
rememberMe: boolean;
|
||||
resetPasswordAllowed: boolean;
|
||||
registrationAllowed: boolean;
|
||||
};
|
||||
auth: {
|
||||
selectedCredential?: string;
|
||||
|
Loading…
x
Reference in New Issue
Block a user