Merge pull request #2091 from rgarmsen2295/plt-1797

PLT-1797 Increased username max length
This commit is contained in:
Corey Hulen
2016-02-05 14:12:10 -08:00
4 changed files with 4 additions and 3 deletions

View File

@@ -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}

View File

@@ -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}

View File

@@ -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}

View File

@@ -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