🐛 fix(users.py): update reference to settings.NEW_USER_IS_ACTIVE to settings.auth_settings.NEW_USER_IS_ACTIVE to fix incorrect attribute access
This commit is contained in:
parent
a2c7d79451
commit
2a3ba95af9
1 changed files with 1 additions and 1 deletions
|
|
@ -40,7 +40,7 @@ def add_user(
|
|||
new_user = User.from_orm(user)
|
||||
try:
|
||||
new_user.password = get_password_hash(user.password)
|
||||
new_user.is_active = settings_service.settings.NEW_USER_IS_ACTIVE
|
||||
new_user.is_active = settings_service.auth_settings.NEW_USER_IS_ACTIVE
|
||||
session.add(new_user)
|
||||
session.commit()
|
||||
session.refresh(new_user)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue