summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic
diff options
context:
space:
mode:
authorXavier Morel <xmo@odoo.com>2020-08-19 13:19:57 +0000
committerXavier Morel <xmo@odoo.com>2020-09-10 12:50:19 +0000
commit3fc9b40561af001fac6914ec56f12d433e012b2a (patch)
tree7a4d21a4df4f04f821ed03a379355ecc6ff1f27e /addons/web/static/src/js/views/basic
parent452f4eabaef725ba8cfbaa4e1202529ab7a4096f (diff)
[FIX] auth_totp: session update after enabling or disabling totp
bfcc7dee8f40afb5f7dec4e2cf5a669c0682e2ed tried to fix the session disconnection issue, but the fix only worked in single-process (either threaded or workers=1): because the cache was cleared but the update not flushed, since `_compute_session_token` uses SQL directly it would recompute the old session_token which it would cache, and thus the process would carry-on with the old token just re-set in the session and cache. Meanwhile in multi-process, odds are good that the next request will be on a different worker which *will* see the change, and will immediately complain & destroy the session. Add the missing flush calls right before recomputing the session token so the SQL "sees" the correct state.
Diffstat (limited to 'addons/web/static/src/js/views/basic')
0 files changed, 0 insertions, 0 deletions