Skip to content

Commit

Permalink
Make current password optional for modify_password
Browse files Browse the repository at this point in the history
  • Loading branch information
wil committed Sep 8, 2024
1 parent d9c2b0b commit 47b4c26
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ldeep/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1645,11 +1645,11 @@ def action_modify_password(self, kwargs):
Arguments:
#user:string
User to unlock
Target user
#newpassword:string
New password
#currpassword:string = None
Current password
@currpassword:string = None
Current password (might be optional according to privileges)
"""
user = kwargs["user"]
new = kwargs["newpassword"]
Expand All @@ -1661,7 +1661,7 @@ def action_modify_password(self, kwargs):
info("Password of {username} changed".format(username=user))
else:
error(
"Unable to change {username}'s password, check privileges or try with ldaps://".format(
"Unable to change {username}'s password, check privileges".format(
username=user
)
)
Expand Down

0 comments on commit 47b4c26

Please sign in to comment.