Eve Authentication with bcrypt driver.db error when sending curl request Eve Authentication with bcrypt driver.db error when sending curl request flask flask

Eve Authentication with bcrypt driver.db error when sending curl request


Something along these lines should work:

from flask import current_appfrom tables import Account# ...def check_auth(...):    session = current_app.data.driver.session    return session.query(Account) \                  .filter(Account.username == username,                          Account.password == hashed_password) \                  .count() > 0

I guess you've tried to mimic the code in http://python-eve.org/authentication.html#basic-authentication-with-bcrypt ? This is for using Mongo-DB instead of SQLAlchemy.