mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
generic fixes
This commit is contained in:
parent
d95497e804
commit
2485285a06
9 changed files with 31 additions and 36 deletions
|
|
@ -75,7 +75,7 @@ async def create_user(
|
|||
|
||||
# Link user and organization
|
||||
user_organization = UserOrganization(
|
||||
user_id=user.id is not None,
|
||||
user_id=user.id if user.id else 0,
|
||||
org_id=int(org_id),
|
||||
role_id=1,
|
||||
creation_date=str(datetime.now()),
|
||||
|
|
@ -201,7 +201,6 @@ async def update_user_password(
|
|||
user.password = await security_hash_password(form.new_password)
|
||||
user.update_date = str(datetime.now())
|
||||
|
||||
|
||||
# Update user in database
|
||||
db_session.add(user)
|
||||
db_session.commit()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue