+ 1
Why request.authorization returns None everytime?
From flask import Flask, request app = Flask(__name__) @app.route('/login') def login(): auth = request.authorization if auth and auth.username = 'abc': return "logged in" else: return "false"
4 Réponses
0
Can you show me an example?
0
try:
if request.method == "abc":
0
From flask import Flask, request
app = Flask(__name__)
@app.route('/login')
def login():
if request.method = 'abc':
return "logged in"
else:
return "false"