Skip to content

Commit

Permalink
Add management command documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamu committed Sep 15, 2016
1 parent b557fd7 commit 1f44952
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
37 changes: 37 additions & 0 deletions docs/commands.rst
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.
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ Contents
settings
templates
signals
commands
migration
faq

0 comments on commit 1f44952

Please sign in to comment.