HomePhabricator

[IMPR] Don't trust token from NeedToken response

Description

[IMPR] Don't trust token from NeedToken response

It can stop working any time soon and it can also be invalid
if multiple login attempts because of endless loops.

  • generate fresh login token on every login attempt
  • copy _logged_in() from api.Request
  • keep track of such issues

Bug: T224712
Change-Id: I55e14bb68f9558a27188d23913a6d321911d7e96

Details

Provenance
DvorapaAuthored on Mar 26 2020, 5:42 PM
Parents
rPWBC2a7998336275: Merge "[bugfix] Fix handling of badtoken response for login actions"
Branches
Unknown
Tags
Unknown
ChangeId
I55e14bb68f9558a27188d23913a6d321911d7e96