Skip to content

Commit

Permalink
add documentation to new endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
desvox committed May 13, 2024
1 parent 2ef0b13 commit 57b34eb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,10 @@ def reset_user_password(self, args, database, user, **kwargs):
auth_hash = sha256(bytes("", "utf8")).hexdigest()
return db.user_update(database, user, {"auth_hash": auth_hash})
raise BBJUserError("non-admin attempt to reset a user's password")
user_update.doctype = "Users"
user_update.arglist = (
("user", "string: a user_name or user_id")
)

@api_method
def user_update(self, args, database, user, **kwargs):
Expand Down

0 comments on commit 57b34eb

Please sign in to comment.