Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $scope.login = function(userName,password){
- $http({
- method : "GET",
- url : "login.py"
- }).then(function (response) {
- console.log(response.data);
- });
- };
- import json
- userName = ""
- password = ""
- form = cgi.FieldStorage()
- if "userName" in form:
- userName = form[userName].value
- if "password" in form:
- password = form[password].value
- print json.dumps(userName)
Add Comment
Please, Sign In to add comment