Spaces:
Runtime error
Runtime error
File size: 454 Bytes
69381eb | 1 2 3 4 5 6 7 8 9 10 11 12 13 | from app import app
from models import db, User
from werkzeug.security import check_password_hash
with app.app_context():
print("DB URI:", app.config["SQLALCHEMY_DATABASE_URI"])
users = User.query.all()
print("Users in DB:", len(users))
for u in users:
print(f" email={u.email} password_hash={u.password[:30]}...")
result = check_password_hash(u.password, "1234")
print(f" password check for '1234': {result}")
|