Guest User

Untitled

a guest
Apr 26th, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. @route('/auth', method='GET')
  2. def home():
  3. login = request.forms.get('login')
  4. paswd = request.forms.get('pass')
  5. check_credentials(login, paswd)
  6.  
  7. def check_credentials(user, pw):
  8. username = "dark"
  9. password = "dark"
  10. if pw == password and user == username:
  11. return template('index.html')
  12. return template('static/templete/auth.html')
Add Comment
Please, Sign In to add comment