Skip to content

Commit 979a044

Browse files
committedJun 18, 2022
Fix changing passwords with MongoDB persistence
1 parent 72cfc98 commit 979a044

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
 

‎ChangeLog.md

+4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ CAS Server change log
33

44
## ?.?.? / ????-??-??
55

6+
## 0.10.1 / 2022-06-18
7+
8+
* Fixed changing passwords with MongoDB persistence - @thekid
9+
610
## 0.10.0 / 2022-06-17
711

812
* Merged PR #18: Use Redis for sessions in production - this way, the

‎src/main/php/de/thekid/cas/mongodb/UserCollection.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function remove(string|User $user): void {
6262
public function password(string|User $user, string|Secret $password): void {
6363
$this->collection->update(
6464
['username' => $user instanceof User ? $user->username() : $user],
65-
['hash' => $this->hash($password)]
65+
[['$set' => ['hash' => $this->hash($password)]]]
6666
);
6767
}
6868

0 commit comments

Comments
 (0)
Please sign in to comment.