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')
Add Comment
Please, Sign In to add comment