Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @app.route('/pass')
- def index():
- if request.authorization and request.authorization.username == 'a' and request.authorization.password == 'a':
- return 'logged in'
- #return render_template("index2.html")
- else:
- return make_response('Could not verify!', 401, {'WWW-Authenticate' : 'Basic realm=Login required'})
Add Comment
Please, Sign In to add comment