Commit Graph

57 Commits

Author SHA1 Message Date
Nic Ducheneaut
8bd8d604ff
Prevent double-validation in LoginSerializer
Modified branching statement to prevent double-validation when using "email" as the authentication method with Allauth.
2017-11-25 14:10:44 -08:00
Maxim Kukhtenkov
53398f8727 Merge pull request #327 from blablacio/user-details-serializer-context
Pass context to user defined USER_DETAILS_SERIALIZER
2017-10-02 11:26:37 -04:00
Jacob Rief
90219295a4 return user object from upstream method invocation 2017-05-30 09:26:16 +02:00
Vladislav Manchev
052094d43c Pass context to user defined USER_DETAILS_SERIALIZER 2017-04-26 23:20:10 +02:00
Maxim Kukhtenkov
955ff3a280 Change retrieving user details serializer to avoid import error
#309
2017-03-05 21:37:14 -08:00
Maxim Kukhtenkov
aa677d51c0 PEP8 cleanup and small text fixes 2016-12-21 14:08:56 -08:00
Maxim Kukhtenkov
d20a601fdd Merge pull request #286 from Tivix/jwt-serializer-with-custom-user-model
JWT serializer with custom user model
2016-12-09 10:12:52 -05:00
Maxim Kukhtenkov
f200b8d6f0 Remove redundant required=True from serializer fields
`required=True` is default setting
2016-12-07 21:47:07 -05:00
Maxim Kukhtenkov
ca62f44061 Append more information to comment
Explain why we are defining JWTUserDetailsSerializer in registration/serializers.py instead of getting it from app_settings.py
2016-11-30 20:03:34 -08:00
Maxim Kukhtenkov
dd6db3563f Allow using custom UserDetailsSerializer with JWTSerializer - update 2016-11-27 17:57:55 -08:00
Maxim Kukhtenkov
a907efc06b Allow using custom UserDetailsSerializer with JWTSerializer 2016-10-31 20:45:33 -07:00
Maxim Kukhtenkov
35fe1ae590 Return pk in /rest-auth/user/ instead of id 2016-10-17 10:27:03 -07:00
Le Pogam Brivael
f793447bae Return ID user on /rest-auth/user/ 2016-09-05 12:44:17 +02:00
mjaworski
2572475971 fixed code quality 2016-03-01 11:51:01 +00:00
mariodev
eda3d7b6d2 Merge pull request #168 from Haos616/master
Fixed errors messages for PasswordResetSerializer
2016-02-29 21:56:16 +01:00
Jon Gregorowicz
e3901516cb Merge branch 'master' into jwt-support
# Conflicts:
#	docs/changelog.rst
#	rest_auth/registration/views.py
2016-02-29 07:45:43 -05:00
Maciej Jaworski
1a0ab4488e Merge pull request #165 from jasinai/AddTranslation
Adds ugettext_lazy to more texts
2016-02-23 10:55:42 +00:00
Poderyagin Egor
cc9552adda update for accept login users of CustomUserModel objects where doesn't exist username field and setted USERNAME_FIELD property 2016-02-17 08:35:47 +03:00
Jon Gregorowicz
f8a9cc152d Merge branch 'master' into jwt-support
# Conflicts:
#	docs/configuration.rst
#	rest_auth/registration/views.py
#	rest_auth/tests/test_api.py
#	rest_auth/utils.py
#	rest_auth/views.py
2016-02-15 23:35:32 -05:00
Haos616
dae38d4e10 Fixed errors messages for PasswordResetSerializer
Fixed errors messages for PasswordResetSerializer
2016-02-10 18:45:32 +02:00
Nicola Hauke
152b0a6fb6 Adds ugettext_lazy to more texts
Also adds a first german translation.
2016-02-02 15:29:16 +01:00
mariodev
00415301d6 Merge pull request #145 from mdentremont/topic/131
#131: Do not raise 400 when resetting password for non-existing account
2016-01-14 23:53:31 +01:00
mario
7e85667208 Made e-mail options more extendible for PasswordResetSerializer 2016-01-14 23:42:02 +01:00
Mateus Caruccio
ccc261d57f Merge branch 'master' of https://github.com/Tivix/django-rest-auth 2016-01-07 19:56:33 -02:00
mario
54eb54ad65 Cleaned up LoginSerializer codebase 2016-01-06 01:18:13 +01:00
Jon Gregorowicz
19e234d1dc * Added support for REST_USE_JWT
* Added JWTSerializer
* Added JWT encoding support, based on django-rest-framework-jwt
* Tests for JWT authentication
2016-01-04 12:45:33 -05:00
Matt d'Entremont
d36a9bc1cb #131: Do not raise 400 when resetting password for non-existing account
- Do not raises validation error if email doesn't exist
- Update unit test
2016-01-04 10:17:47 -04:00
Mateus Caruccio
c9d55f768c Add support for custom Token model 2016-01-02 15:59:06 -02:00
Poderyagin Egor
bb2fb65f7d Auth by email 2015-12-13 23:43:33 +03:00
Poderyagin Egor
9b7ede752b Make email in password reset serializer Case unsensetive 2015-12-10 18:13:28 +06:00
mario
d9b8f3faf6 Added non existing e-mail validation on password reset
+ small cleanup
2015-11-23 22:17:32 +01:00
mario
6ace9de268 Compatibility updates
+ removed some legacy code
+ added force_text for py3 support
2015-11-19 09:38:57 +01:00
Mateusz Sikora
ba5edbaf62 fix update_session_auth_hash for django <1.7 2015-10-19 10:12:25 +02:00
Bhaarat Sharma
48eb40ae47 adding not 2015-10-18 08:23:36 -04:00
Bhaarat Sharma
296a49a04b Don't log the user out after change password - Django 1.7 2015-10-18 00:20:50 -04:00
Philippe Luickx
c22b77724d LoginSerializer allow_blank fix 2015-08-17 13:35:20 +03:00
Mateusz Sikora
388314f831 fix flake8 2015-08-14 13:49:47 +02:00
Philippe Luickx
bd193a1401 you can now login with email and password, without username 2015-08-07 13:43:21 +03:00
mjaworski
a60df71c07 Flake8 style fixes 2015-04-28 10:22:08 +02:00
Marco Badan
4b9b631744 Fix TabError: inconsistent use of tabs and spaces in indentation 2015-04-27 17:06:48 +02:00
S.Turgut
fe1eff745e change PasswordResetConfirmSerializer setpasswordform from token invalid value error to form validation error 2015-03-11 12:05:45 +02:00
Jeppe Vesterbæk
846040259a Mark email as read only for user details 2015-02-25 16:06:46 +01:00
Mateusz Sikora
2158fffd2a fix #47 - PasswordResetConfirm doesn't check token 2015-01-27 16:52:54 +01:00
Mateusz Sikora
01ffd4127b support django-rest-framework v3.0 2015-01-09 12:05:14 +01:00
Mateusz Sikora
7b7e2d368b fix bug in PasswordChangeSerializer 2014-11-14 10:31:02 +01:00
Mateusz Sikora
e8a7b0bdf4 add old_password field in PasswordChangeSerializer, disabled by default 2014-11-12 11:51:22 +01:00
Mateusz Sikora
989f3fa7af minor fixes 2014-10-09 11:41:52 +02:00
Mateusz Sikora
a7be2d178b password reset and password change refactoring 2014-10-07 15:08:08 +02:00
Mateusz Sikora
459d03e30d revised user details view 2014-10-02 11:18:23 +02:00
Mateusz Sikora
de1fb3d81f registration with email verification:
- rebuild login view
- check email verification in LoginSerializer depends on allauth settings
- add test for registration with email verification
2014-10-01 15:31:10 +02:00