-
Notifications
You must be signed in to change notification settings - Fork 356
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add management command documentation
- Loading branch information
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
.. _commands: | ||
|
||
=================== | ||
Management Commands | ||
=================== | ||
|
||
user_password_history | ||
--------------------- | ||
|
||
Creates an initial password history for all users who don't already | ||
have a password history. | ||
|
||
Accepts two optional arguments:: | ||
|
||
-d --days - Sets the age of the current password. Default is 10 days. | ||
-f --force - Sets a new password history for ALL users, regardless of prior history. | ||
|
||
user_password_expiry | ||
-------------------- | ||
|
||
Creates a password expiry specific to one user. | ||
|
||
Password expiration checks use a global value (``ACCOUNT_PASSWORD_EXPIRY``) | ||
for the expiration time period. This value can be superseded on a per-user basis | ||
by creating a user password expiry. | ||
|
||
Requires one argument:: | ||
|
||
<username> - username of the user who needs specific password expiry. | ||
|
||
Accepts one optional argument:: | ||
|
||
-e --expire - Sets the number of seconds for password expiration. | ||
Default is the current global ACCOUNT_PASSWORD_EXPIRY value. | ||
|
||
After creation, you can modify the user's password expiration from the Django | ||
admin, look for "account.PasswordExpiry" and find the desired user. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,5 +21,6 @@ Contents | |
settings | ||
templates | ||
signals | ||
commands | ||
migration | ||
faq |