mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2025-07-11 08:22:18 +03:00
Merge 52f2ae1772
into cdd04aa9be
This commit is contained in:
commit
52b3c1a46c
|
@ -51,3 +51,13 @@ Configuration
|
||||||
- **OLD_PASSWORD_FIELD_ENABLED** - set it to True if you want to have old password verification on password change enpoint (default: False)
|
- **OLD_PASSWORD_FIELD_ENABLED** - set it to True if you want to have old password verification on password change enpoint (default: False)
|
||||||
|
|
||||||
- **LOGOUT_ON_PASSWORD_CHANGE** - set to False if you want to keep the current user logged in after a password change
|
- **LOGOUT_ON_PASSWORD_CHANGE** - set to False if you want to keep the current user logged in after a password change
|
||||||
|
|
||||||
|
- **REST_AUTH_REGISTER_PERMISSION_CLASSES** - set to add permissions to the registration view
|
||||||
|
|
||||||
|
Example configuration with dry-permissions (https://github.com/dbkaplan/dry-rest-permissions):
|
||||||
|
|
||||||
|
.. code-block:: python
|
||||||
|
|
||||||
|
REST_AUTH_REGISTER_PERMISSION_CLASSES = [
|
||||||
|
'dry_rest_permissions.generics.DRYPermissions'
|
||||||
|
]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user