KEYCLOAK-13976 limit field lenght
This commit is contained in:
parent
09b54a9473
commit
5bb4ee5375
1 changed files with 5 additions and 1 deletions
|
@ -140,7 +140,7 @@ export class AccountPage extends React.Component<AccountPageProps, AccountPageSt
|
||||||
fieldId="user-name"
|
fieldId="user-name"
|
||||||
helperTextInvalid={this.state.errors.username}
|
helperTextInvalid={this.state.errors.username}
|
||||||
isValid={this.state.errors.username === ''}
|
isValid={this.state.errors.username === ''}
|
||||||
>
|
>
|
||||||
{this.isEditUserNameAllowed && <this.UsernameInput />}
|
{this.isEditUserNameAllowed && <this.UsernameInput />}
|
||||||
{!this.isEditUserNameAllowed && <this.RestrictedUsernameInput />}
|
{!this.isEditUserNameAllowed && <this.RestrictedUsernameInput />}
|
||||||
</FormGroup>
|
</FormGroup>
|
||||||
|
@ -157,6 +157,7 @@ export class AccountPage extends React.Component<AccountPageProps, AccountPageSt
|
||||||
type="email"
|
type="email"
|
||||||
id="email-address"
|
id="email-address"
|
||||||
name="email"
|
name="email"
|
||||||
|
maxLength={254}
|
||||||
value={fields.email}
|
value={fields.email}
|
||||||
onChange={this.handleChange}
|
onChange={this.handleChange}
|
||||||
isValid={this.state.errors.email === ''}
|
isValid={this.state.errors.email === ''}
|
||||||
|
@ -175,6 +176,7 @@ export class AccountPage extends React.Component<AccountPageProps, AccountPageSt
|
||||||
type="text"
|
type="text"
|
||||||
id="first-name"
|
id="first-name"
|
||||||
name="firstName"
|
name="firstName"
|
||||||
|
maxLength={254}
|
||||||
value={fields.firstName}
|
value={fields.firstName}
|
||||||
onChange={this.handleChange}
|
onChange={this.handleChange}
|
||||||
isValid={this.state.errors.firstName === ''}
|
isValid={this.state.errors.firstName === ''}
|
||||||
|
@ -193,6 +195,7 @@ export class AccountPage extends React.Component<AccountPageProps, AccountPageSt
|
||||||
type="text"
|
type="text"
|
||||||
id="last-name"
|
id="last-name"
|
||||||
name="lastName"
|
name="lastName"
|
||||||
|
maxLength={254}
|
||||||
value={fields.lastName}
|
value={fields.lastName}
|
||||||
onChange={this.handleChange}
|
onChange={this.handleChange}
|
||||||
isValid={this.state.errors.lastName === ''}
|
isValid={this.state.errors.lastName === ''}
|
||||||
|
@ -240,6 +243,7 @@ export class AccountPage extends React.Component<AccountPageProps, AccountPageSt
|
||||||
type="text"
|
type="text"
|
||||||
id="user-name"
|
id="user-name"
|
||||||
name="username"
|
name="username"
|
||||||
|
maxLength={254}
|
||||||
value={this.state.formFields.username}
|
value={this.state.formFields.username}
|
||||||
onChange={this.handleChange}
|
onChange={this.handleChange}
|
||||||
isValid={this.state.errors.username === ''}
|
isValid={this.state.errors.username === ''}
|
||||||
|
|
Loading…
Reference in a new issue