Clicking on email verification does not automatically fill in your email (#5140)
* implement Clicking on email verification does not automatically fill in your email * set the cursor to the password field * update per review * update per review
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
3a17e96866
Коммит
6806df6f93
@@ -42,12 +42,17 @@ export default class LoginController extends React.Component {
|
|||||||
this.handleLoginIdChange = this.handleLoginIdChange.bind(this);
|
this.handleLoginIdChange = this.handleLoginIdChange.bind(this);
|
||||||
this.handlePasswordChange = this.handlePasswordChange.bind(this);
|
this.handlePasswordChange = this.handlePasswordChange.bind(this);
|
||||||
|
|
||||||
|
let loginId = '';
|
||||||
|
if (this.props.location.query.extra === Constants.SIGNIN_VERIFIED && this.props.location.query.email) {
|
||||||
|
loginId = this.props.location.query.email;
|
||||||
|
}
|
||||||
|
|
||||||
this.state = {
|
this.state = {
|
||||||
ldapEnabled: global.window.mm_license.IsLicensed === 'true' && global.window.mm_config.EnableLdap === 'true',
|
ldapEnabled: global.window.mm_license.IsLicensed === 'true' && global.window.mm_config.EnableLdap === 'true',
|
||||||
usernameSigninEnabled: global.window.mm_config.EnableSignInWithUsername === 'true',
|
usernameSigninEnabled: global.window.mm_config.EnableSignInWithUsername === 'true',
|
||||||
emailSigninEnabled: global.window.mm_config.EnableSignInWithEmail === 'true',
|
emailSigninEnabled: global.window.mm_config.EnableSignInWithEmail === 'true',
|
||||||
samlEnabled: global.window.mm_license.IsLicensed === 'true' && global.window.mm_config.EnableSaml === 'true',
|
samlEnabled: global.window.mm_license.IsLicensed === 'true' && global.window.mm_config.EnableSaml === 'true',
|
||||||
loginId: '', // the browser will set a default for this
|
loginId,
|
||||||
password: '',
|
password: '',
|
||||||
showMfa: false,
|
showMfa: false,
|
||||||
loading: false
|
loading: false
|
||||||
@@ -61,6 +66,10 @@ export default class LoginController extends React.Component {
|
|||||||
GlobalActions.redirectUserToDefaultTeam();
|
GlobalActions.redirectUserToDefaultTeam();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.props.location.query.extra === Constants.SIGNIN_VERIFIED && this.props.location.query.email) {
|
||||||
|
this.refs.password.focus();
|
||||||
|
}
|
||||||
|
|
||||||
AsyncClient.checkVersion();
|
AsyncClient.checkVersion();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user