Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure that updated session is sent to clients after external auth
While 162cd06 correctly identified that sending the cookie was only necessary after reading it or re-auth, it failed to notice that InstantiateNewSession is called elsewhere than AttemptPasswordAuthentication (notably AttemptExternalAuth), all of which require SendSessionCookie calls to function correctly. Ensure that the updated cookie value is always set after it is changed by InstantiateNewSession, as well as directly before page display (in case other callbacks change the session id by other means).
- Loading branch information