Front page's Forgot Password will report an invalid email address instead of simply errorring. Does NOT include updated locals/en/front.json
This commit is contained in:
@@ -82,13 +82,17 @@ angular.module('authCtrl', [])
|
||||
};
|
||||
|
||||
$scope.passwordReset = function(email){
|
||||
$http.post(ApiUrlService.get() + '/api/v2/user/reset-password', {email:email})
|
||||
.success(function(){
|
||||
alert(window.env.t('newPassSent'));
|
||||
})
|
||||
.error(function(data){
|
||||
alert(data.err);
|
||||
});
|
||||
if(email == null || email.length == 0) {
|
||||
alert(window.env.t('invalidEmail'));
|
||||
} else {
|
||||
$http.post(ApiUrlService.get() + '/api/v2/user/reset-password', {email:email})
|
||||
.success(function(){
|
||||
alert(window.env.t('newPassSent'));
|
||||
})
|
||||
.error(function(data){
|
||||
alert(data.err);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
$scope.expandMenu = function(menu) {
|
||||
|
||||
Reference in New Issue
Block a user