mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Merge pull request #2091 from rgarmsen2295/plt-1797
PLT-1797 Increased username max length
This commit is contained in:
@@ -303,7 +303,7 @@ class SignupUserComplete extends React.Component {
|
||||
ref='name'
|
||||
className='form-control'
|
||||
placeholder=''
|
||||
maxLength='128'
|
||||
maxLength={Constants.MAX_USERNAME_LENGTH}
|
||||
spellCheck='false'
|
||||
/>
|
||||
{nameError}
|
||||
|
||||
@@ -115,7 +115,7 @@ class TeamSignupUsernamePage extends React.Component {
|
||||
className='form-control'
|
||||
placeholder=''
|
||||
defaultValue={this.props.state.user.username}
|
||||
maxLength='128'
|
||||
maxLength={Constants.MAX_USERNAME_LENGTH}
|
||||
spellCheck='false'
|
||||
/>
|
||||
{nameHelpText}
|
||||
|
||||
@@ -514,6 +514,7 @@ class UserSettingsGeneralTab extends React.Component {
|
||||
<label className='col-sm-5 control-label'>{usernameLabel}</label>
|
||||
<div className='col-sm-7'>
|
||||
<input
|
||||
maxLength={Constants.MAX_USERNAME_LENGTH}
|
||||
className='form-control'
|
||||
type='text'
|
||||
onChange={this.updateUsername}
|
||||
|
||||
@@ -464,7 +464,7 @@ export default {
|
||||
},
|
||||
OVERLAY_TIME_DELAY: 400,
|
||||
MIN_USERNAME_LENGTH: 3,
|
||||
MAX_USERNAME_LENGTH: 15,
|
||||
MAX_USERNAME_LENGTH: 64,
|
||||
MIN_PASSWORD_LENGTH: 5,
|
||||
MAX_PASSWORD_LENGTH: 50,
|
||||
TIME_SINCE_UPDATE_INTERVAL: 30000
|
||||
|
||||
Reference in New Issue
Block a user