fix: usernameEditDisabled renamed to usernameHidden

- update KcContext definition for login.ftl
- update the username field rendering conditions in Login.tsx

Closes #397
This commit is contained in:
Pierre Rebeu
2023-08-14 15:53:05 +02:00
parent 5156b2e0cc
commit 4acf5d0931
4 changed files with 34 additions and 37 deletions

View File

@ -145,7 +145,7 @@ export declare namespace KcContext {
rememberMe?: string;
password?: string;
};
usernameEditDisabled: boolean;
usernameHidden?: boolean;
social: {
displayInfo: boolean;
providers?: {

View File

@ -264,7 +264,7 @@ export const kcContextMocks = [
"social": {
"displayInfo": true
},
"usernameEditDisabled": false,
"usernameHidden": false,
"login": {},
"registrationDisabled": false
}),