Invalidate all other sessions on password change.

This commit is contained in:
Andrey Antukh 2021-11-15 16:45:50 +01:00 committed by Andrés Moya
parent abca69f408
commit bf51e3db60
5 changed files with 18 additions and 9 deletions

View file

@ -72,7 +72,10 @@
(do
(a/>!! (::events-ch cfg) id)
(l/update-thread-context! {:profile-id profile-id})
(handler (assoc request :profile-id profile-id)))
(-> request
(assoc :profile-id profile-id)
(assoc :session-id id)
(handler)))
(handler request))))
;; --- STATE INIT: SESSION