Move errors to top of reset password

This commit is contained in:
J. Ryan Stinnett 2019-02-06 18:10:06 +00:00
parent 3afc455f3c
commit 0e543a362e

View file

@ -227,6 +227,7 @@ module.exports = React.createClass({
<h3> <h3>
{yourMatrixAccountText} {yourMatrixAccountText}
</h3> </h3>
{errorText}
<form onSubmit={this.onSubmitForm}> <form onSubmit={this.onSubmitForm}>
<div className="mx_AuthBody_fieldRow"> <div className="mx_AuthBody_fieldRow">
<input className="mx_Login_field" ref="user" type="text" <input className="mx_Login_field" ref="user" type="text"
@ -254,7 +255,6 @@ module.exports = React.createClass({
<input className="mx_Login_submit" type="submit" value={_t('Send Reset Email')} /> <input className="mx_Login_submit" type="submit" value={_t('Send Reset Email')} />
</form> </form>
{serverConfigSection} {serverConfigSection}
{errorText}
<a className="mx_AuthBody_changeFlow" onClick={this.onLoginClick} href="#"> <a className="mx_AuthBody_changeFlow" onClick={this.onLoginClick} href="#">
{_t('Sign in instead')} {_t('Sign in instead')}
</a> </a>