Fix broken forgot password form. closes #116

This commit is contained in:
Toby Zerner 2015-06-20 10:29:57 +09:30
parent 4060d575a8
commit 195a3e42d8
2 changed files with 3 additions and 1 deletions

View File

@ -49,7 +49,7 @@ export default class ForgotPasswordModal extends FormModal {
background: true,
extract: xhr => {
if (xhr.status === 404) {
this.alert = new Alert({ type: 'warning', message: 'That email wasn\'t found in our database.' });
this.alert(new Alert({ type: 'warning', message: 'That email wasn\'t found in our database.' }));
throw new Error;
}
return null;

View File

@ -51,6 +51,8 @@ export default class FormModal extends Component {
if (errors) {
this.$('[name='+errors[0].path+']').select();
} else {
this.$(':input:first').select();
}
}
}