# 2. Verifying a password during login def verify_password(plain_text_password, stored_hash): # Check if the provided password matches the stored hash return bcrypt.checkpw(plain_text_password.encode('utf-8'), stored_hash)