Make password reset logic translatable
This commit is contained in:
@@ -21,7 +21,7 @@ angular.module('Application').controller('ProfileController', ['$scope', '$trans
|
||||
Client.sendPasswordReset(function (error) {
|
||||
if (error) return console.error('Failed to reset password:', error);
|
||||
|
||||
Client.notify('Password reset successful', 'Email sent to ' + $scope.user.fallbackEmail, false, 'success');
|
||||
Client.notify($translate.instant('profile.passwordResetNotification.title'), $translate.instant('profile.passwordResetNotification.body', { email: $scope.user.fallbackEmail}), false, 'success');
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user