Plain password reset for a user

This commit is contained in:
Johannes Zellner
2021-09-16 14:35:17 +02:00
parent 14478919e6
commit ea3726f88b
5 changed files with 30 additions and 72 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ angular.module('Application').controller('ProfileController', ['$scope', '$trans
});
$scope.sendPasswordReset = function () {
Client.sendPasswordReset(function (error) {
Client.sendPasswordReset($scope.user.email, function (error) {
if (error) return console.error('Failed to reset password:', error);
Client.notify($translate.instant('profile.passwordResetNotification.title'), $translate.instant('profile.passwordResetNotification.body', { email: $scope.user.fallbackEmail}), false, 'success');