Content-Length: 212191 | pFad | https://github.com/sebadob/rauthy/commit/8d9cdce61992ee59e381876b71b18168e7e3ce31

FB Merge pull request #88 from sebadob/bugfix-user-email-change-cache-up… · sebadob/rauthy@8d9cdce · GitHub
Skip to content

Commit

Permalink
Merge pull request #88 from sebadob/bugfix-user-email-change-cache-up…
Browse files Browse the repository at this point in the history
…date

bugfix: update user in cache correctly after email update
  • Loading branch information
sebadob authored Oct 23, 2023
2 parents a9af494 + 2f84222 commit 8d9cdce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rauthy-models/src/entity/users.rs
Original file line number Diff line number Diff line change
Expand Up @@ -363,8 +363,8 @@ impl User {
let users = User::find_all(data)
.await?
.into_iter()
// delete possibly existing cached user with the old email
.filter(|u| Some(&u.email) != old_email.as_ref())
// // delete possibly existing cached user with the old email
// .filter(|u| Some(&u.email) != old_email.as_ref())
.map(|mut u| {
if u.id == self.id {
u = self.clone();
Expand Down

0 comments on commit 8d9cdce

Please sign in to comment.








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/sebadob/rauthy/commit/8d9cdce61992ee59e381876b71b18168e7e3ce31

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy