Skip to content

Commit

Permalink
automatically redirecting to home page
Browse files Browse the repository at this point in the history
  • Loading branch information
aholachek committed Jun 27, 2016
1 parent b1fc4cf commit ef484f1
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 ef484f1

Please sign in to comment.