Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix register to honor AUTH_PASSWORD_VALIDATORS #277

Merged
merged 1 commit into from
Jul 2, 2021

Conversation

LanceMoe
Copy link
Contributor

@LanceMoe LanceMoe commented Jul 1, 2021

An old pr, I transferred it:
Tivix/django-rest-auth#482

@iMerica iMerica merged commit 1bfebd6 into iMerica:master Jul 2, 2021
hiporox pushed a commit to hiporox/dj-rest-auth that referenced this pull request Feb 1, 2022
[`django-allauth` account adapters allow creating a user with no password](https://github.com/pennersr/django-allauth/blob/ced1ddc730c36eca3551406c60e1577e30e01cbd/allauth/account/adapter.py#L241). 

iMerica#277 broke using this functionality. This PR re-adds it by only running password validation if a password is present in cleaned data
iMerica pushed a commit that referenced this pull request Feb 6, 2022
* Allow Registration with no password

[`django-allauth` account adapters allow creating a user with no password](https://github.com/pennersr/django-allauth/blob/ced1ddc730c36eca3551406c60e1577e30e01cbd/allauth/account/adapter.py#L241). 

#277 broke using this functionality. This PR re-adds it by only running password validation if a password is present in cleaned data

* refactor: change style to match that in allauth

* test: add tests

* test: fix tests

* test: add extra testing to account for coveralls complaints
onlinehub0808 added a commit to onlinehub0808/dj_rest_auth that referenced this pull request Jan 30, 2023
* Allow Registration with no password

[`django-allauth` account adapters allow creating a user with no password](https://github.com/pennersr/django-allauth/blob/ced1ddc730c36eca3551406c60e1577e30e01cbd/allauth/account/adapter.py#L241). 

iMerica/dj-rest-auth#277 broke using this functionality. This PR re-adds it by only running password validation if a password is present in cleaned data

* refactor: change style to match that in allauth

* test: add tests

* test: fix tests

* test: add extra testing to account for coveralls complaints
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants