diff --git a/app/views/fbo-admin/dashboard.controller.js b/app/views/fbo-admin/dashboard.controller.js index b275f38..9c4e902 100644 --- a/app/views/fbo-admin/dashboard.controller.js +++ b/app/views/fbo-admin/dashboard.controller.js @@ -24,6 +24,18 @@ $scope.feature.amstatIntegration = false; $scope.feature.posAccountingIntegration = false; $scope.feature.posVeederRootIntegration = false; + + $scope.checkUsername = function(){ + FBOAdmin.checkUsernameEmail($scope.user.email).then(function(status) { + console.log(status) + if(status != 200){ + toastr.error('This email has alreay taken', { + closeButton: true + }) + } + }) + } + $scope.userData = function(){ if($scope.user.email == undefined || $scope.user.email == null){ toastr.error('Please enter your email first', { diff --git a/app/views/fbo-admin/dashboard.html b/app/views/fbo-admin/dashboard.html index 0269402..b25da29 100644 --- a/app/views/fbo-admin/dashboard.html +++ b/app/views/fbo-admin/dashboard.html @@ -36,7 +36,7 @@