Until we can distinguish by the return data, mark both fields red

This commit is contained in:
Johannes Zellner
2016-01-26 19:44:33 +01:00
parent fd11eb8da0
commit 10f1ad5cfe

View File

@@ -83,6 +83,7 @@ angular.module('Application').controller('UsersController', ['$scope', '$locatio
if (error && error.statusCode === 409) {
$scope.useradd.error.username = 'Username or Email already taken';
$scope.useradd.error.email = 'Username or Email already taken';
$scope.useradd_form.username.$setPristine();
$scope.useradd_form.email.$setPristine();
$scope.useradd_form.displayName.$setPristine();