Do not auto login on password reset

This commit is contained in:
Johannes Zellner
2018-04-30 19:55:59 +02:00
parent f809e359c9
commit c5c3748aa9
+1 -1
View File
@@ -435,7 +435,7 @@ function passwordReset(req, res, next) {
if (error && error.reason === UsersError.BAD_FIELD) return next(new HttpError(406, error.message));
if (error) return next(new HttpError(500, error));
res.redirect(util.format('%s?accessToken=%s&expiresAt=%s', config.adminOrigin(), result.token, result.expiresAt));
res.redirect(config.adminOrigin());
});
});
}