a guest Apr 26th, 2018 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- @route('/auth', method='GET')
- def home():
- login = request.forms.get('login')
- paswd = request.forms.get('pass')
- check_credentials(login, paswd)
- def check_credentials(user, pw):
- username = "dark"
- password = "dark"
- if pw == password and user == username:
- return template('index.html')
- return template('static/templete/auth.html')
RAW Paste Data