Remove debug code from login function and update password hashing method to use PBKDF2 in User model

This commit is contained in:
Hamit Şimşek
2025-11-01 00:27:21 +03:00
parent 986db6d7b5
commit a7d880c97e
3 changed files with 2 additions and 15 deletions

View File

@@ -38,7 +38,7 @@ class User(UserMixin, db.Model):
Security: Uses bcrypt with automatic salt generation
for resistance against rainbow table attacks.
"""
self.password_hash = password
self.password_hash = generate_password_hash(password, method='pbkdf2:sha256')
def check_password(self, password):
"""