Skip to content

Commit

Permalink
Fix to stop password setting attempting to login. Fixes #11
Browse files Browse the repository at this point in the history
  • Loading branch information
struan committed Jul 4, 2013
1 parent d25ce74 commit 04aa79a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion www/js/views/submit.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@
onClickSetPassword: function(e) {
e.preventDefault();
if ( this.validate() ) {
this.model.set('submit_clicked', 'submit_register');
FMS.currentUser.set('email', $('#form_email').val());
this.navigate( 'submit-set-password' );
}
Expand Down Expand Up @@ -350,7 +351,9 @@
onClickContinue: function(e) {
e.preventDefault();
$('#continue').focus();
this.model.set('submit_clicked', 'submit_sign_in');
if ( ! this.model.get('submit_clicked') ) {
this.model.set('submit_clicked', 'submit_sign_in');
}
FMS.currentUser.set('password', $('#form_password').val());
this.navigate( this.next );
}
Expand Down

0 comments on commit 04aa79a

Please sign in to comment.