mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 14:29:51 -04:00
108536490: Update encryption for password
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
from app import db, login_manager
|
||||
from app.models import User
|
||||
from app.main.encryption import encrypt
|
||||
from app.main.encryption import hashpw
|
||||
|
||||
|
||||
@login_manager.user_loader
|
||||
@@ -9,7 +9,7 @@ def load_user(user_id):
|
||||
|
||||
|
||||
def insert_user(user):
|
||||
user.password = encrypt(user.password)
|
||||
user.password = hashpw(user.password)
|
||||
db.session.add(user)
|
||||
db.session.commit()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user