Skip to content

Commit 6048bcb

Browse files
committedFeb 20, 2024
improve doc
1 parent de1a64a commit 6048bcb

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed
 

‎README.md

+3-6
Original file line numberDiff line numberDiff line change
@@ -668,9 +668,9 @@ users_history_resp = descope_client.mgmt.user.history(["user-id-1", "user-id-2"]
668668

669669
#### Set or Expire User Password
670670

671-
You can set (temporary/active) or expire a user's password.
672-
Note: When using SetTemporaryPassword password will automatically be set as expired.
673-
The user will not be able log-in using an expired password, and will be required replace it on next login.
671+
You can set a new active password for a user that they can sign in with.
672+
You can also set a temporary password that they user will be forced to change on the next login.
673+
For a user that already has an active password, you can expire their current password, effectively requiring them to change it on the next login.
674674

675675
```Python
676676

@@ -680,9 +680,6 @@ descope_client.mgmt.user.set_temporary_password('<login-id>', '<some-password>')
680680
# Set a user's password
681681
descope_client.mgmt.user.set_active_password('<login-id>', '<some-password>');
682682

683-
# Set a user's password
684-
descope_client.mgmt.user.set_password('<login-id>', '<some-password>');
685-
686683
# Or alternatively, expire a user password
687684
descope_client.mgmt.user.expirePassword('<login-id>');
688685
```

0 commit comments

Comments
 (0)