Skip to content

Commit

Permalink
fix: use correct name
Browse files Browse the repository at this point in the history
  • Loading branch information
damien.rabois committed Jan 19, 2024
1 parent 811311a commit b29e3e0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This Django app requires Python >= 3.6 and has been tested with Django 2.2, 3.1,
## Installation
1. `pip install django-password-rotate`.
2. Add `password_rotate` to `INSTALLED_APPS`.
3. Add `'password_rotate.middleware.PasswordExpireMiddleware'` to `MIDDLEWARE`.
3. Add `'password_rotate.middleware.PasswordRotateMiddleware'` to `MIDDLEWARE`.
It should be listed after authentication and session middlewares.
4. Configure the app in your settings:
```python
Expand Down
2 changes: 1 addition & 1 deletion password_rotate/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
default_app_config = 'password_rotate.apps.PasswordExpireConfig'
default_app_config = 'password_rotate.apps.PasswordRotateConfig'
8 changes: 4 additions & 4 deletions password_rotate/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,22 +53,22 @@ def login_handler(sender, request, user, **kwargs):
def register_signals():
user_logged_in.connect(
redirect_to_change_password,
dispatch_uid="password_expire:redirect_to_change_password"
dispatch_uid="password_rotate:redirect_to_change_password"
)

signals.post_save.connect(
create_user_handler,
sender=settings.AUTH_USER_MODEL,
dispatch_uid="password_expire:create_user_handler",
dispatch_uid="password_rotate:create_user_handler",
)

signals.pre_save.connect(
change_password_handler,
sender=settings.AUTH_USER_MODEL,
dispatch_uid="password_expire:change_password_handler",
dispatch_uid="password_rotate:change_password_handler",
)

user_logged_in.connect(
login_handler,
dispatch_uid="password_expire:login_handler"
dispatch_uid="password_rotate:login_handler"
)

0 comments on commit b29e3e0

Please sign in to comment.