mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-06-03 13:00:03 -04:00
flask_login moves from `user_id` to `_user_id`. unfortunately, this isn't backwards compatible as if an old cookie only has the old `user_id`, then flask_login won't find `_user_id` so will mark the user as unauthenticated. this code will manually migrate the three flask login cookie variables, before the flask_login code runs, so that it doesn't freak out