Guest User

Untitled

a guest
Apr 15th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. $scope.login = function(userName,password){
  2. $http({
  3. method : "GET",
  4. url : "login.py"
  5. }).then(function (response) {
  6. console.log(response.data);
  7. });
  8. };
  9.  
  10. import json
  11. userName = ""
  12. password = ""
  13. form = cgi.FieldStorage()
  14.  
  15. if "userName" in form:
  16. userName = form[userName].value
  17. if "password" in form:
  18. password = form[password].value
  19.  
  20. print json.dumps(userName)
Add Comment
Please, Sign In to add comment