Show what is going on there
This commit is contained in:
parent
89ef9747f9
commit
d7f8fcec88
@ -1,4 +1,4 @@
|
||||
from flask import Flask, request, jsonify
|
||||
from flask import Flask, request, jsonify, current_app
|
||||
from flask_httpauth import HTTPBasicAuth
|
||||
from werkzeug.security import check_password_hash
|
||||
from ipaddress import ip_address
|
||||
@ -39,6 +39,8 @@ def create_app(config=None):
|
||||
@auth.verify_password
|
||||
def verify_password(username, password):
|
||||
users = get_users()
|
||||
current_app.logger.debug(users)
|
||||
current_app.logger.debug('Checking password of %s', username)
|
||||
if username in users and \
|
||||
check_password_hash(users.get(username), password):
|
||||
return username
|
||||
|
Loading…
x
Reference in New Issue
Block a user