I wasn't able to hit all possible cases here, because some appear to be
impossible to meet. Like, I have found an user in the session by
validating against the database but that very same record is gone in the
next second? Maybe the middleware would need some detangling to simulate
this but at that point I'm not sure whether it would be worth the
effort. Might make sense to investigate what led to the current
implementation instead.
Signed-off-by: André Jaenisch andre.jaenisch@posteo.de
I wasn't able to hit all possible cases here, because some appear to be
impossible to meet. Like, I have found an user in the session by
validating against the database but that very same record is gone in the
next second? Maybe the middleware would need some detangling to simulate
this but at that point I'm not sure whether it would be worth the
effort. Might make sense to investigate what led to the current
implementation instead.
Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>