"docs/source/en/optimization/fp16.mdx" did not exist on "5a38033de4824c8d5d9b2856776df45592a8e825"
Unverified Commit a7fb560e authored by Timothy Jaeryang Baek's avatar Timothy Jaeryang Baek Committed by GitHub
Browse files

Merge pull request #3699 from Peter-De-Ath/fix-update-user-email-auth

fix auth update_email_by_id - add db.commit
parents d51e8665 1bb27242
......@@ -173,6 +173,7 @@ class AuthsTable:
result = (
db.query(Auth).filter_by(id=id).update({"password": new_password})
)
db.commit()
return True if result == 1 else False
except:
return False
......@@ -182,6 +183,7 @@ class AuthsTable:
with get_db() as db:
result = db.query(Auth).filter_by(id=id).update({"email": email})
db.commit()
return True if result == 1 else False
except:
return False
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment