Skip to content

Commit e4e4476

Browse files
committed
update the warning
1 parent b2e759f commit e4e4476

3 files changed

Lines changed: 11 additions & 6 deletions

File tree

src/keycloak-theme/login/Template.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,19 @@ export default function Template(props: TemplateProps<KcContext, I18n>) {
6464

6565
return (
6666
<div className={styles.login} id="kc-login-template">
67+
{kcContext.pageId === 'login.ftl' && (
68+
<div className={styles['top-notice']}>
69+
<Alert variant="warning" customHeading={msgStr('signInNoticeTitle')} dismissible={false}>
70+
{msg('signInNoticeBody')}
71+
</Alert>
72+
</div>
73+
)}
6774
<div id="kc-header">
6875
<div id="kc-header-wrapper" className={styles['header-wrapper']}>
6976
<img src={dataverse_logo} alt="Brand Logo Image" />
7077
</div>
7178
</div>
79+
7280
<div className={styles['login-card']}>
7381
<header>
7482
{enabledLanguages.length > 1 && (

src/keycloak-theme/login/i18n.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ const { useI18n, ofTypeI18n } = i18nBuilder
77
.withThemeName<ThemeName>()
88
.withCustomTranslations({
99
en: {
10-
signInNoticeTitle: 'Note',
10+
signInNoticeTitle: 'Note about ORCID, GitHub, and Google sign-in:',
1111
signInNoticeBody:
12-
'Please use your Username/Email or Institutional Account to sign in. Other identity providers(ORCID, GitHub, Microsoft and Google) are not supported for Dataverse SPA.'
12+
'These options are available only to the existing accounts that previously authenticated with these methods. New sign-ups via ORCID, GitHub, or Google are not supported. Please use your Institutional Login or Username/Email to sign up. If you need help logging in, please contact support.'
1313
}
1414
})
1515
.build()

src/keycloak-theme/login/pages/Login.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { useIsPasswordRevealed } from 'keycloakify/tools/useIsPasswordRevealed'
55
import type { PageProps } from 'keycloakify/login/pages/PageProps'
66
import type { KcContext } from '../KcContext'
77
import type { I18n } from '../i18n'
8-
import { Alert, Button, Col, Form } from '@iqss/dataverse-design-system'
8+
import { Button, Col, Form } from '@iqss/dataverse-design-system'
99
import {
1010
EyeFill,
1111
EyeSlashFill,
@@ -92,9 +92,6 @@ export default function Login(props: PageProps<Extract<KcContext, { pageId: 'log
9292
)}
9393
</>
9494
}>
95-
<Alert variant="warning" customHeading={msgStr('signInNoticeTitle')} dismissible={false}>
96-
{msg('signInNoticeBody')}
97-
</Alert>
9895
<div id="kc-form">
9996
<div id="kc-form-wrapper">
10097
{realm.password && (

0 commit comments

Comments
 (0)