Spaces:
Runtime error
Runtime error
| 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}") | |