Guest User

Untitled

a guest
Nov 13th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. @app.route('/pass')
  2. def index():
  3. if request.authorization and request.authorization.username == 'a' and request.authorization.password == 'a':
  4. return 'logged in'
  5. #return render_template("index2.html")
  6. else:
  7. return make_response('Could not verify!', 401, {'WWW-Authenticate' : 'Basic realm=Login required'})
Add Comment
Please, Sign In to add comment