Create set backup niggles: 1

* Clear the password score when hitting 'back'
 * autoFocus password input
This commit is contained in:
David Baker 2019-01-10 13:49:40 +00:00
parent 1c42f4f5a0
commit 3752a21fb1

View file

@ -177,6 +177,7 @@ export default React.createClass({
passPhrase: '', passPhrase: '',
passPhraseConfirm: '', passPhraseConfirm: '',
phase: PHASE_PASSPHRASE, phase: PHASE_PASSPHRASE,
zxcvbnResult: null,
}); });
}, },
@ -246,6 +247,7 @@ export default React.createClass({
value={this.state.passPhrase} value={this.state.passPhrase}
className="mx_CreateKeyBackupDialog_passPhraseInput" className="mx_CreateKeyBackupDialog_passPhraseInput"
placeholder={_t("Enter a passphrase...")} placeholder={_t("Enter a passphrase...")}
autoFocus={true}
/> />
<div className="mx_CreateKeyBackupDialog_passPhraseHelp"> <div className="mx_CreateKeyBackupDialog_passPhraseHelp">
{strengthMeter} {strengthMeter}