main2
Bob Mottram 2019-10-25 13:52:07 +01:00
parent 0638290ae3
commit 1cafe0c8dd
1 changed files with 8 additions and 9 deletions

View File

@ -2834,7 +2834,6 @@ class PubServer(BaseHTTPRequestHandler):
print('Login success: '+loginNickname)
self.send_response(303)
# This produces a deterministic token based on nick+password+salt
if not self.server.salts.get(loginNickname):
saltFilename=self.server.baseDir+'/accounts/'+loginNickname+'@'+self.server.domain+'/.salt'
if os.path.isfile(saltFilename):
with open(saltFilename, 'r') as fp: