Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

clear secure password cache if password is set to nil #43378

Merged
merged 1 commit into from Oct 14, 2021

Conversation

doits
Copy link
Contributor

@doits doits commented Oct 5, 2021

# before:
user.password = 'something'
user.password = nil

user.password # => 'something'

# now:
user.password = 'something'
user.password = nil

user.password # => nil

```rb
# before:
user.password = 'something'
user.password = nil

user.password # => 'something'

# now:
user.password = 'something'
user.password = nil

user.password # => nil
```
@p8 p8 added the ready PRs ready to merge label Oct 10, 2021
@rafaelfranca rafaelfranca merged commit 3b5db8e into rails:main Oct 14, 2021
rafaelfranca added a commit that referenced this pull request Oct 14, 2021
clear secure password cache if password is set to `nil`
vsppedro added a commit to thoughtbot/shoulda-matchers that referenced this pull request Sep 28, 2022
vsppedro added a commit to thoughtbot/shoulda-matchers that referenced this pull request Sep 30, 2022
* Bump Rails from 5.2.6 to 5.2.8.1

* Bump Rails from 6.0.4.4 to 6.0.6

* Bump Rails from 6.1.4.4 to 6.1.7

* test: skip validates_presence_of test with has_secure_password when rails greater than 6.0

See: rails/rails#43378

* Bump Rails from 7.0.1 to 7.0.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
activemodel ready PRs ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants