-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Version 1.0 refactoring: removed password reset, as this libraries pu…
…rpose was multi token auth and not password reset. password reset will live in its own git project from now on
- Loading branch information
1 parent
55961b5
commit 6c5ffc6
Showing
11 changed files
with
12 additions
and
587 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
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 |
---|---|---|
@@ -1,13 +1,8 @@ | ||
""" contains basic admin views for MultiToken """ | ||
from django.contrib import admin | ||
from django_rest_multitokenauth.models import MultiToken, ResetPasswordToken | ||
from django_rest_multitokenauth.models import MultiToken | ||
|
||
|
||
@admin.register(MultiToken) | ||
class MultiTokenAdmin(admin.ModelAdmin): | ||
list_display = ('user', 'key', 'user_agent') | ||
|
||
|
||
@admin.register(ResetPasswordToken) | ||
class ResetPasswordTokenAdmin(admin.ModelAdmin): | ||
list_display = ('user', 'key', 'created_at', 'ip_address', 'user_agent') |
32 changes: 0 additions & 32 deletions
32
django_rest_multitokenauth/migrations/0003_resetpasswordtoken.py
This file was deleted.
Oops, something went wrong.
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
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
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 |
---|---|---|
@@ -1,9 +1,7 @@ | ||
import django.dispatch | ||
|
||
reset_password_token_created = django.dispatch.Signal( | ||
providing_args=["reset_password_token"], | ||
) | ||
|
||
# pre-auth signal | ||
pre_auth = django.dispatch.Signal(providing_args=["username", "password"]) | ||
|
||
# post-auth signal | ||
post_auth = django.dispatch.Signal(providing_args=["user"]) |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,11 +1,9 @@ | ||
""" URL Configuration for core auth | ||
""" | ||
from django.conf.urls import url, include | ||
from django_rest_multitokenauth.views import login_and_obtain_auth_token, logout_and_delete_auth_token, reset_password_request_token, reset_password_confirm | ||
from django_rest_multitokenauth.views import login_and_obtain_auth_token, logout_and_delete_auth_token | ||
|
||
urlpatterns = [ | ||
url(r'^login', login_and_obtain_auth_token, name="auth-login"), # normal login with session | ||
url(r'^logout', logout_and_delete_auth_token, name="auth-logout"), | ||
url(r'^reset_password/confirm', reset_password_confirm, name="auth-reset-password-confirm"), | ||
url(r'^reset_password', reset_password_request_token, name="auth-reset-password-request"), | ||
url(r'^logout', logout_and_delete_auth_token, name="auth-logout") | ||
] |
Oops, something went wrong.