Base directory

main2
Bob Mottram 2019-10-25 13:46:33 +01:00
parent 67f843607d
commit 0638290ae3
1 changed files with 1 additions and 1 deletions

View File

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