Fixed bugs on verification
This commit is contained in:
parent
f0c0b27329
commit
ef111cbec6
|
@ -77,7 +77,7 @@ exports.validateVerificationToken = function(req, res, next){
|
|||
res.status(200).send('User successfully verified');
|
||||
}else {
|
||||
// redirect to resend verification email
|
||||
res.status(401).send('Verification token is invalid or has expired');
|
||||
res.status(400).send('Verification token is invalid or has expired');
|
||||
}
|
||||
});
|
||||
};
|
||||
|
|
5
public/dist/application.js
vendored
5
public/dist/application.js
vendored
|
@ -1789,9 +1789,6 @@ angular.module('users').controller('SettingsController', ['$scope', '$rootScope'
|
|||
|
||||
angular.module('users').controller('VerifyController', ['$scope', '$state', '$rootScope', 'User', 'Auth', '$stateParams',
|
||||
function($scope, $state, $rootScope, User, Auth, $stateParams) {
|
||||
if($rootScope.authentication.isAuthenticated()){
|
||||
$state.go('home');
|
||||
}
|
||||
|
||||
$scope.isReset = false;
|
||||
$scope.credentials = {};
|
||||
|
@ -1833,7 +1830,7 @@ angular.module('users').controller('VerifyController', ['$scope', '$state', '$ro
|
|||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
]);
|
||||
'use strict';
|
||||
|
|
4
public/dist/application.min.js
vendored
4
public/dist/application.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -2,9 +2,6 @@
|
|||
|
||||
angular.module('users').controller('VerifyController', ['$scope', '$state', '$rootScope', 'User', 'Auth', '$stateParams',
|
||||
function($scope, $state, $rootScope, User, Auth, $stateParams) {
|
||||
if($rootScope.authentication.isAuthenticated()){
|
||||
$state.go('home');
|
||||
}
|
||||
|
||||
$scope.isReset = false;
|
||||
$scope.credentials = {};
|
||||
|
@ -46,6 +43,6 @@ angular.module('users').controller('VerifyController', ['$scope', '$state', '$ro
|
|||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
]);
|
Loading…
Reference in a new issue