mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2025-04-22 09:42:09 +03:00
Compare commits
No commits in common. "master" and "0.9.5" have entirely different histories.
|
@ -1,9 +1,3 @@
|
||||||
===========
|
|
||||||
Deprecated
|
|
||||||
===========
|
|
||||||
Please use https://github.com/iMerica/dj-rest-auth as this project is no longer maintained. Thanks!
|
|
||||||
|
|
||||||
|
|
||||||
Welcome to django-rest-auth
|
Welcome to django-rest-auth
|
||||||
===========================
|
===========================
|
||||||
|
|
||||||
|
|
|
@ -243,8 +243,8 @@ You can also use the following views to check all social accounts attached to th
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
JSON Web Token (JWT) Support (optional)
|
JWT Support (optional)
|
||||||
---------------------------------------
|
----------------------
|
||||||
|
|
||||||
By default ``django-rest-auth`` uses Django's Token-based authentication. If you want to use JWT authentication, follow these steps:
|
By default ``django-rest-auth`` uses Django's Token-based authentication. If you want to use JWT authentication, follow these steps:
|
||||||
|
|
||||||
|
|
Binary file not shown.
|
@ -1,98 +0,0 @@
|
||||||
# SOME DESCRIPTIVE TITLE.
|
|
||||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
|
||||||
# This file is distributed under the same license as the PACKAGE package.
|
|
||||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
|
||||||
#
|
|
||||||
msgid ""
|
|
||||||
msgstr ""
|
|
||||||
"Project-Id-Version: \n"
|
|
||||||
"Report-Msgid-Bugs-To: \n"
|
|
||||||
"POT-Creation-Date: 2016-12-22 11:37-0800\n"
|
|
||||||
"PO-Revision-Date: 2017-02-14 13:27+0100\n"
|
|
||||||
"Language: fr\n"
|
|
||||||
"MIME-Version: 1.0\n"
|
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
|
||||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
||||||
"Last-Translator: \n"
|
|
||||||
"Language-Team: \n"
|
|
||||||
"X-Generator: Poedit 1.8.11\n"
|
|
||||||
|
|
||||||
#: registration/serializers.py:53
|
|
||||||
msgid "View is not defined, pass it as a context variable"
|
|
||||||
msgstr "La “View” n’est pas définie, passez la en variable contextuelle"
|
|
||||||
|
|
||||||
#: registration/serializers.py:58
|
|
||||||
msgid "Define adapter_class in view"
|
|
||||||
msgstr "Définissez “adapter_class” dans la vue"
|
|
||||||
|
|
||||||
#: registration/serializers.py:77
|
|
||||||
msgid "Define callback_url in view"
|
|
||||||
msgstr "Définissez “callback_url” dans la vue"
|
|
||||||
|
|
||||||
#: registration/serializers.py:81
|
|
||||||
msgid "Define client_class in view"
|
|
||||||
msgstr "Définissez “client_class” dans la vue"
|
|
||||||
|
|
||||||
#: registration/serializers.py:102
|
|
||||||
msgid "Incorrect input. access_token or code is required."
|
|
||||||
msgstr "Paramètres incorrects. Il faut “access_token” ou “code”."
|
|
||||||
|
|
||||||
#: registration/serializers.py:111
|
|
||||||
msgid "Incorrect value"
|
|
||||||
msgstr "Paramètre incorrect"
|
|
||||||
|
|
||||||
#: registration/serializers.py:140
|
|
||||||
msgid "A user is already registered with this e-mail address."
|
|
||||||
msgstr "Un utilisateur existe déjà avec cette adresse email."
|
|
||||||
|
|
||||||
#: registration/serializers.py:148
|
|
||||||
msgid "The two password fields didn't match."
|
|
||||||
msgstr "Les deux mots de passes ne sont pas les mêmes."
|
|
||||||
|
|
||||||
#: registration/views.py:82
|
|
||||||
msgid "ok"
|
|
||||||
msgstr "Ok"
|
|
||||||
|
|
||||||
#: serializers.py:30
|
|
||||||
msgid "Must include \"email\" and \"password\"."
|
|
||||||
msgstr "Doit inclure “email” et “password”."
|
|
||||||
|
|
||||||
#: serializers.py:41
|
|
||||||
msgid "Must include \"username\" and \"password\"."
|
|
||||||
msgstr "Doit inclure “username” et “password”."
|
|
||||||
|
|
||||||
#: serializers.py:54
|
|
||||||
msgid "Must include either \"username\" or \"email\" and \"password\"."
|
|
||||||
msgstr "Doit inclure un “username” ou “email”, et un “password”."
|
|
||||||
|
|
||||||
#: serializers.py:95
|
|
||||||
msgid "User account is disabled."
|
|
||||||
msgstr "Le compte utilisateur est désactivé."
|
|
||||||
|
|
||||||
#: serializers.py:98
|
|
||||||
msgid "Unable to log in with provided credentials."
|
|
||||||
msgstr "Connexion impossible avec les informations fournies."
|
|
||||||
|
|
||||||
#: serializers.py:107
|
|
||||||
msgid "E-mail is not verified."
|
|
||||||
msgstr "L’adresse email n’a pas été vérifiée."
|
|
||||||
|
|
||||||
#: views.py:114
|
|
||||||
msgid "Successfully logged out."
|
|
||||||
msgstr "Déconnexion effectuée avec succès."
|
|
||||||
|
|
||||||
#: views.py:162
|
|
||||||
msgid "Password reset e-mail has been sent."
|
|
||||||
msgstr "L’email de réinitialisation du mot de passe a été envoyé."
|
|
||||||
|
|
||||||
#: views.py:184
|
|
||||||
msgid "Password has been reset with the new password."
|
|
||||||
msgstr "Le mot de passe a été réinitialisé."
|
|
||||||
|
|
||||||
#: views.py:202
|
|
||||||
msgid "New password has been saved."
|
|
||||||
msgstr "Le nouveau mot de passe est sauvé."
|
|
||||||
|
|
||||||
#~ msgid "Error"
|
|
||||||
#~ msgstr "Fehler"
|
|
|
@ -1,99 +0,0 @@
|
||||||
# SOME DESCRIPTIVE TITLE.
|
|
||||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
|
||||||
# This file is distributed under the same license as the PACKAGE package.
|
|
||||||
# Bruno Barreto Freitas <brunobarretofreitas@outlook.com>, 2019.
|
|
||||||
#
|
|
||||||
#, fuzzy
|
|
||||||
msgid ""
|
|
||||||
msgstr ""
|
|
||||||
"Project-Id-Version: PACKAGE VERSION\n"
|
|
||||||
"Report-Msgid-Bugs-To: \n"
|
|
||||||
"POT-Creation-Date: 2019-04-16 09:48-0800\n"
|
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
|
||||||
"Last-Translator: Bruno Barreto Freitas <brunobarretofreitas@outlook.com>\n"
|
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
||||||
"Language: \n"
|
|
||||||
"MIME-Version: 1.0\n"
|
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
|
||||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
||||||
|
|
||||||
#: registration/serializers.py:53
|
|
||||||
msgid "View is not defined, pass it as a context variable"
|
|
||||||
msgstr "\"View\" não está definida, passe-a como uma variável de contexto"
|
|
||||||
|
|
||||||
#: registration/serializers.py:58
|
|
||||||
msgid "Define adapter_class in view"
|
|
||||||
msgstr "Defina \"adapter_class\" na view"
|
|
||||||
|
|
||||||
#: registration/serializers.py:77
|
|
||||||
msgid "Define callback_url in view"
|
|
||||||
msgstr "Defina \"callback_url\" na view"
|
|
||||||
|
|
||||||
#: registration/serializers.py:81
|
|
||||||
msgid "Define client_class in view"
|
|
||||||
msgstr "Defina \"client_class\" na view"
|
|
||||||
|
|
||||||
#: registration/serializers.py:102
|
|
||||||
msgid "Incorrect input. access_token or code is required."
|
|
||||||
msgstr "Entrada incorreta. \"access_token\" ou \"code\" são obrigatórios."
|
|
||||||
|
|
||||||
#: registration/serializers.py:111
|
|
||||||
msgid "Incorrect value"
|
|
||||||
msgstr "Valor incorreto"
|
|
||||||
|
|
||||||
#: registration/serializers.py:140
|
|
||||||
msgid "A user is already registered with this e-mail address."
|
|
||||||
msgstr "Já existe um usuário cadastrado com este endereço de e-mail."
|
|
||||||
|
|
||||||
#: registration/serializers.py:148
|
|
||||||
msgid "The two password fields didn't match."
|
|
||||||
msgstr "Os dois campos de senha não correspondem."
|
|
||||||
|
|
||||||
#: registration/views.py:44
|
|
||||||
msgid "Verification e-mail sent."
|
|
||||||
msgstr "E-mail de verificação enviado."
|
|
||||||
|
|
||||||
#: registration/views.py:91
|
|
||||||
msgid "ok"
|
|
||||||
msgstr "Ok"
|
|
||||||
|
|
||||||
#: serializers.py:30
|
|
||||||
msgid "Must include \"email\" and \"password\"."
|
|
||||||
msgstr "Deve-se incluir \"email\" e \"password\"."
|
|
||||||
|
|
||||||
#: serializers.py:41
|
|
||||||
msgid "Must include \"username\" and \"password\"."
|
|
||||||
msgstr "Deve-se incluir \"username\" e \"password\"."
|
|
||||||
|
|
||||||
#: serializers.py:54
|
|
||||||
msgid "Must include either \"username\" or \"email\" and \"password\"."
|
|
||||||
msgstr "Deve-se incluir \"username\" ou \"email\" e \"password\"."
|
|
||||||
|
|
||||||
#: serializers.py:95
|
|
||||||
msgid "User account is disabled."
|
|
||||||
msgstr "Conta de usuário está desativada"
|
|
||||||
|
|
||||||
#: serializers.py:98
|
|
||||||
msgid "Unable to log in with provided credentials."
|
|
||||||
msgstr "Não foi possível realizar o login com as credenciais fornecidas."
|
|
||||||
|
|
||||||
#: serializers.py:107
|
|
||||||
msgid "E-mail is not verified."
|
|
||||||
msgstr "E-mail não foi verificado."
|
|
||||||
|
|
||||||
#: views.py:126
|
|
||||||
msgid "Successfully logged out."
|
|
||||||
msgstr "Logout realizado com sucesso."
|
|
||||||
|
|
||||||
#: views.py:174
|
|
||||||
msgid "Password reset e-mail has been sent."
|
|
||||||
msgstr "E-mail de redefinição de senha foi enviado."
|
|
||||||
|
|
||||||
#: views.py:200
|
|
||||||
msgid "Password has been reset with the new password."
|
|
||||||
msgstr "Senha foi redefinida com a nova senha."
|
|
||||||
|
|
||||||
#: views.py:222
|
|
||||||
msgid "New password has been saved."
|
|
||||||
msgstr "Nova senha foi salva com sucesso."
|
|
|
@ -256,8 +256,7 @@ class PasswordChangeSerializer(serializers.Serializer):
|
||||||
)
|
)
|
||||||
|
|
||||||
if all(invalid_password_conditions):
|
if all(invalid_password_conditions):
|
||||||
err_msg = _("Your old password was entered incorrectly. Please enter it again.")
|
raise serializers.ValidationError('Invalid password')
|
||||||
raise serializers.ValidationError(err_msg)
|
|
||||||
return value
|
return value
|
||||||
|
|
||||||
def validate(self, attrs):
|
def validate(self, attrs):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user