Skip to content

Commit

Permalink
Merge pull request #1422 from privacyidea/1419/fixEnrollForm
Browse files Browse the repository at this point in the history
Fix enrollment form
  • Loading branch information
cornelinux committed Feb 5, 2019
2 parents 40d6cc9 + 5d21351 commit 98ccbb1
Showing 1 changed file with 6 additions and 2 deletions.
Expand Up @@ -297,11 +297,15 @@ myApp.controller("tokenEnrollController", function ($scope, TokenFactory,
// A watch function to change the form data in case another user is selected
$scope.$watch(function(scope) {return scope.newUser.email;},
function(newValue, oldValue){
$scope.form.email = newValue;
if (newValue != '') {
$scope.form.email = newValue;
}
});
$scope.$watch(function(scope) {return scope.newUser.mobile;},
function(newValue, oldValue){
$scope.form.phone = newValue;
if (newValue != '') {
$scope.form.phone = newValue;
}
});

// Get the realms and fill the realm dropdown box
Expand Down

0 comments on commit 98ccbb1

Please sign in to comment.