Skip to content

Commit

Permalink
Merge e7c55c9 into 30fe118
Browse files Browse the repository at this point in the history
  • Loading branch information
IssaIan committed Jun 5, 2019
2 parents 30fe118 + e7c55c9 commit 6cc3ff1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion authors/apps/authentication/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
path('users/oauth/', SocialAuthAPIView.as_view(), name='social'),
path('users/password/reset/',
PasswordResetView.as_view(), name='password_reset'),
path('users/password/reset/confirm/',
path('users/password/reset/confirm/<str:token>',
PasswordResetConfirmView.as_view(), name='password_reset_confirm'),
path('users/activate/<str:token>',
SignupEmailVerificationView.as_view(), name='signup_verification'),
Expand Down
4 changes: 2 additions & 2 deletions authors/apps/authentication/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,11 +193,11 @@ class PasswordResetConfirmView(GenericAPIView):
permission_classes = (AllowAny,)
serializer_class = PasswordResetConfirmSerializer

def post(self, request):
def post(self, request, **kwargs):
request.POST._mutable = True
data = request.data
token, password = (
request.GET.get("token"),
kwargs['token'],
data.get("password")
)
data["token"] = token
Expand Down
2 changes: 1 addition & 1 deletion authors/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@
}
}
}
PASSWORD_RESET_URL_PREFIX = '{}/api/users/password/reset/confirm/?token='.format(
PASSWORD_RESET_URL_PREFIX = '{}/resetconfirm/'.format(
DOMAIN)
EMAIL_BACKEND = os.getenv('EMAIL_BACKEND')
EMAIL_HOST = os.getenv('EMAIL_HOST')
Expand Down

0 comments on commit 6cc3ff1

Please sign in to comment.