Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GetLogin : function(username, password)
- {
- var tempVal;
- $.ajax({
- dataType: "json",
- url: 'http://localhost:24711/api/login/',
- type: 'POST',
- data: {Username: username, Password: password},
- async: false,
- success: function (data) {
- tempVal = data;
- //callback(tempVal);
- },
- error: function()
- {
- tempVal = -2;
- }
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement