Merge pull request #2091 from rgarmsen2295/plt-1797
PLT-1797 Increased username max length
Этот коммит содержится в:
@@ -303,7 +303,7 @@ class SignupUserComplete extends React.Component {
|
|||||||
ref='name'
|
ref='name'
|
||||||
className='form-control'
|
className='form-control'
|
||||||
placeholder=''
|
placeholder=''
|
||||||
maxLength='128'
|
maxLength={Constants.MAX_USERNAME_LENGTH}
|
||||||
spellCheck='false'
|
spellCheck='false'
|
||||||
/>
|
/>
|
||||||
{nameError}
|
{nameError}
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ class TeamSignupUsernamePage extends React.Component {
|
|||||||
className='form-control'
|
className='form-control'
|
||||||
placeholder=''
|
placeholder=''
|
||||||
defaultValue={this.props.state.user.username}
|
defaultValue={this.props.state.user.username}
|
||||||
maxLength='128'
|
maxLength={Constants.MAX_USERNAME_LENGTH}
|
||||||
spellCheck='false'
|
spellCheck='false'
|
||||||
/>
|
/>
|
||||||
{nameHelpText}
|
{nameHelpText}
|
||||||
|
|||||||
@@ -514,6 +514,7 @@ class UserSettingsGeneralTab extends React.Component {
|
|||||||
<label className='col-sm-5 control-label'>{usernameLabel}</label>
|
<label className='col-sm-5 control-label'>{usernameLabel}</label>
|
||||||
<div className='col-sm-7'>
|
<div className='col-sm-7'>
|
||||||
<input
|
<input
|
||||||
|
maxLength={Constants.MAX_USERNAME_LENGTH}
|
||||||
className='form-control'
|
className='form-control'
|
||||||
type='text'
|
type='text'
|
||||||
onChange={this.updateUsername}
|
onChange={this.updateUsername}
|
||||||
|
|||||||
@@ -464,7 +464,7 @@ export default {
|
|||||||
},
|
},
|
||||||
OVERLAY_TIME_DELAY: 400,
|
OVERLAY_TIME_DELAY: 400,
|
||||||
MIN_USERNAME_LENGTH: 3,
|
MIN_USERNAME_LENGTH: 3,
|
||||||
MAX_USERNAME_LENGTH: 15,
|
MAX_USERNAME_LENGTH: 64,
|
||||||
MIN_PASSWORD_LENGTH: 5,
|
MIN_PASSWORD_LENGTH: 5,
|
||||||
MAX_PASSWORD_LENGTH: 50,
|
MAX_PASSWORD_LENGTH: 50,
|
||||||
TIME_SINCE_UPDATE_INTERVAL: 30000
|
TIME_SINCE_UPDATE_INTERVAL: 30000
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user