Ran black on sources
This commit is contained in:
parent
7a8d5853af
commit
ed92f9a177
2 changed files with 5 additions and 2 deletions
|
|
@ -64,7 +64,9 @@ class SharedLoginMiddleware(object):
|
|||
|
||||
if csession.get("webclient_authenticated_uid", None):
|
||||
# set a nonce to prevent the webclient from erasing the webclient_authenticated_uid value
|
||||
csession["webclient_authenticated_nonce"] = csession.get("webclient_authenticated_nonce", 0) + 1
|
||||
csession["webclient_authenticated_nonce"] = (
|
||||
csession.get("webclient_authenticated_nonce", 0) + 1
|
||||
)
|
||||
# wrap around to prevent integer overflows
|
||||
if csession["webclient_authenticated_nonce"] > 32:
|
||||
csession["webclient_authenticated_nonce"] = 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue