File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ const Login: React.FC = () => {
4444
4545 setUsernamePasswordMethod ( usernamePasswordMethod ) ;
4646 setAuthMethods ( otherMethods ) ;
47-
47+
4848 // Automatically login if only one non-username/password method is enabled
4949 if ( ! usernamePasswordMethod && otherMethods . length === 1 ) {
5050 handleAuthMethodLogin ( otherMethods [ 0 ] ) ;
@@ -161,8 +161,7 @@ const Login: React.FC = () => {
161161 component = 'legend'
162162 style = { { fontSize : '1rem' , marginTop : 10 , marginBottom : 0 } }
163163 >
164- No username/password authentication method is configured. Please contact an
165- administrator to enable this feature.
164+ Username/password authentication is not enabled at this time.
166165 </ FormLabel >
167166 </ CardBody >
168167 ) }
@@ -189,7 +188,10 @@ const Login: React.FC = () => {
189188 data-test = { `${ am } -login` }
190189 key = { am }
191190 >
192- Login with { am . toUpperCase ( ) }
191+ Login
192+ { authMethods . length > 1 || usernamePasswordMethod
193+ ? ` with ${ am . toUpperCase ( ) } `
194+ : '' }
193195 </ Button >
194196 ) ) }
195197 </ >
You can’t perform that action at this time.
0 commit comments