mirror of
https://github.com/9001/copyparty.git
synced 2026-03-27 18:42:58 +10:00
add idp-cookie; for high-traffic / glitchy auth servers
This commit is contained in:
@@ -2869,7 +2869,10 @@ class AuthSrv(object):
|
||||
|
||||
n = []
|
||||
q = "insert into us values (?,?,?)"
|
||||
for uname in self.acct:
|
||||
accs = list(self.acct)
|
||||
if self.args.idp_h_usr and self.args.idp_cookie:
|
||||
accs.extend(self.idp_accs.keys())
|
||||
for uname in accs:
|
||||
if uname not in ases:
|
||||
sid = ub64enc(os.urandom(blen)).decode("ascii")
|
||||
cur.execute(q, (uname, sid, int(time.time())))
|
||||
|
||||
Reference in New Issue
Block a user