Skip to content

Commit 169e3e2

Browse files
committed
chore: update Login.tsx labels
1 parent 886e71e commit 169e3e2

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/ui/views/Login/Login.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff 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
</>

0 commit comments

Comments
 (0)