Skip to content

Commit

Permalink
Merge pull request #986 from aholachek/password-reset-2
Browse files Browse the repository at this point in the history
automatically redirecting to home page
  • Loading branch information
aholachek authored Jun 27, 2016
2 parents b1fc4cf + ef484f1 commit 08078f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
4 changes: 3 additions & 1 deletion src/js/components/session.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,9 @@ define([
pubsub = this.getPubSub();
promise.done(function(){
pubsub.publish(pubsub.USER_ANNOUNCEMENT, "reset_password_2_success");
var message = "Your password has been successfully reset";
//navigate to home page
pubsub.publish(pubsub.NAVIGATE, "index-page");
var message = "Your password has been successfully reset!";
pubsub.publish(pubsub.ALERT, new ApiFeedback({code: 0, msg: message, type : "success", modal: true}));
});

Expand Down
8 changes: 1 addition & 7 deletions src/js/widgets/authentication/widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -366,13 +366,7 @@ define([

showResetPasswordSuccessView : function(){

//get rid of loading view
this.renderSubView();

var view = new SuccessView({
title : "Password Reset Successful",
message : '<a href="#">click here to go to the home page.</a>'
});
var view = new SuccessView({title : "Password Reset Successful"});
this.container.show(view);
},

Expand Down

0 comments on commit 08078f6

Please sign in to comment.