Guest User

Untitled

a guest
Jun 19th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. args = parser.parse_args()
  2.  
  3. _userUsername = args['username']
  4. _userPassword = args['password']
  5.  
  6.  
  7. conn = mysql.connect()
  8.  
  9. cursor = conn.cursor()
  10. cursor.callproc('gsAuthUser', (_userUsername,))
  11. data = cursor.fetchall()
  12. cursor.callproc('gsGetPassword', (_userUsername,))
  13. pwd = cursor.fetchall()
  14. print(pwd)
  15.  
  16. _userPassDecrypt = check_password_hash(pwd, _userPassword)
  17.  
  18. print(_userPassDecrypt)
  19.  
  20.  
  21.  
  22. except Exception as e:
  23. return {'error': str(e)}
  24.  
  25. api.add_resource(CreateUser, '/CreateUser') api.add_resource(AuthUser, '/AuthUser')
Add Comment
Please, Sign In to add comment