PLT-4036 Fix disable button on LDAP sign up page (#3920)
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
effd084023
Коммит
438ff8f8bc
@@ -28,8 +28,29 @@ export default class SignupLdap extends React.Component {
|
|||||||
this.handleLdapSignup = this.handleLdapSignup.bind(this);
|
this.handleLdapSignup = this.handleLdapSignup.bind(this);
|
||||||
this.handleLdapSignupSuccess = this.handleLdapSignupSuccess.bind(this);
|
this.handleLdapSignupSuccess = this.handleLdapSignupSuccess.bind(this);
|
||||||
|
|
||||||
|
this.handleLdapIdChange = this.handleLdapIdChange.bind(this);
|
||||||
|
this.handleLdapPasswordChange = this.handleLdapPasswordChange.bind(this);
|
||||||
|
|
||||||
this.state = ({
|
this.state = ({
|
||||||
ldapError: ''
|
ldapError: '',
|
||||||
|
ldapId: '',
|
||||||
|
ldapPassword: ''
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
handleLdapIdChange(e) {
|
||||||
|
e.preventDefault();
|
||||||
|
|
||||||
|
this.setState({
|
||||||
|
ldapId: e.target.value
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
handleLdapPasswordChange(e) {
|
||||||
|
e.preventDefault();
|
||||||
|
|
||||||
|
this.setState({
|
||||||
|
ldapPassword: e.target.value
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -39,8 +60,8 @@ export default class SignupLdap extends React.Component {
|
|||||||
this.setState({ldapError: ''});
|
this.setState({ldapError: ''});
|
||||||
|
|
||||||
Client.webLoginByLdap(
|
Client.webLoginByLdap(
|
||||||
this.refs.id.value.trim(),
|
this.state.ldapId,
|
||||||
this.refs.password.value,
|
this.state.ldapPassword,
|
||||||
null,
|
null,
|
||||||
this.handleLdapSignupSuccess,
|
this.handleLdapSignupSuccess,
|
||||||
(err) => {
|
(err) => {
|
||||||
@@ -118,8 +139,9 @@ export default class SignupLdap extends React.Component {
|
|||||||
<input
|
<input
|
||||||
className='form-control'
|
className='form-control'
|
||||||
name='ldapId'
|
name='ldapId'
|
||||||
ref='id'
|
value={this.state.ldapId}
|
||||||
placeholder={ldapIdPlaceholder}
|
placeholder={ldapIdPlaceholder}
|
||||||
|
onChange={this.handleLdapIdChange}
|
||||||
spellCheck='false'
|
spellCheck='false'
|
||||||
autoCapitalize='off'
|
autoCapitalize='off'
|
||||||
/>
|
/>
|
||||||
@@ -129,8 +151,9 @@ export default class SignupLdap extends React.Component {
|
|||||||
type='password'
|
type='password'
|
||||||
className='form-control'
|
className='form-control'
|
||||||
name='password'
|
name='password'
|
||||||
ref='password'
|
value={this.state.ldapPassword}
|
||||||
placeholder={Utils.localizeMessage('login.password', 'Password')}
|
placeholder={Utils.localizeMessage('login.password', 'Password')}
|
||||||
|
onChange={this.handleLdapPasswordChange}
|
||||||
spellCheck='false'
|
spellCheck='false'
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user