harbor/static/resources/js/services/user/services.user-exist.js

23 lines
477 B
JavaScript
Raw Normal View History

2016-05-06 14:37:44 +02:00
(function() {
'use strict';
angular
.module('harbor.services.user')
.factory('UserExistService', UserExistService);
UserExistService.$inject = ['$http', '$log'];
function UserExistService($http, $log) {
return userExist;
function userExist(target, value) {
return $.ajax({
type: 'POST',
url: '/userExists',
async: false,
data: {'target': target, 'value': value}
});
}
}
})();