show if user is not activated yet

This commit is contained in:
Johannes Zellner
2016-09-28 12:20:45 +02:00
parent 11cfa2efaa
commit b0c470da5a
2 changed files with 5 additions and 2 deletions

View File

@@ -333,7 +333,7 @@ angular.module('Application').controller('UsersController', ['$scope', '$locatio
$scope.userremove.error.username = null;
$scope.userremove.error.password = null;
if ($scope.userremove.username !== $scope.userremove.userInfo.username && $scope.userremove.username !== $scope.userremove.userInfo.email) {
if ($scope.userremove.username !== $scope.userremove.userInfo.username && $scope.userremove.username !== $scope.userremove.userInfo.email && $scope.userremove.username !== $scope.userremove.userInfo.alternateEmail) {
$scope.userremove.error.username = true;
$scope.userremove.username = '';
$scope.userremove_form.username.$setPristine();