Skip to content

Commit

Permalink
[FIX] Reset password link error if already logged in (#12022)
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigok authored and sampaiodiego committed Sep 11, 2018
1 parent d66c80d commit 06ec781
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Template.resetPassword.events({
const button = instance.$('button.resetpass');
RocketChat.Button.loading(button);

if (Meteor.userId()) {
if (Meteor.userId() && !FlowRouter.getParam('token')) {
Meteor.call('setUserPassword', instance.find('[name=newPassword]').value, function(error) {
if (error) {
console.log(error);
Expand Down

0 comments on commit 06ec781

Please sign in to comment.