lucyparsons / OpenOversight

Police oversight and accountability through public data 👮
https://openoversight.com
GNU General Public License v3.0
237 stars 79 forks source link

Invalidate session on email/pw update #1068

Closed sea-kelp closed 1 year ago

sea-kelp commented 1 year ago

Fixes issue

Fixes #1067

Description of Changes

This invalidates all of a user's sessions when their email or password is updated. This builds upon changes made in https://github.com/lucyparsons/OpenOversight/commit/0912f9071742c1269fe16b8228c2d2b4cded6b6e.

See the Flask-Login documentation for an explanation of how this works: https://flask-login.readthedocs.io/en/latest/#alternative-tokens

Notes for Deployment

None!

Screenshots (if appropriate)

Tests and linting