disable password
This commit is contained in:
parent
1be85a89d8
commit
c476e9ac83
2 changed files with 5 additions and 1 deletions
|
@ -737,6 +737,7 @@ if __name__ == '__main__':
|
||||||
|
|
||||||
root = OxControl(db)
|
root = OxControl(db)
|
||||||
|
|
||||||
|
"""
|
||||||
username = root.db.get('username', 'fix')
|
username = root.db.get('username', 'fix')
|
||||||
password = root.db.get('password', 'me')
|
password = root.db.get('password', 'me')
|
||||||
|
|
||||||
|
@ -757,6 +758,8 @@ if __name__ == '__main__':
|
||||||
resource = HTTPAuthSessionWrapper(portal, [credentialFactory])
|
resource = HTTPAuthSessionWrapper(portal, [credentialFactory])
|
||||||
|
|
||||||
site = server.Site(resource)
|
site = server.Site(resource)
|
||||||
|
"""
|
||||||
|
site = server.Site(root)
|
||||||
reactor.listenTCP(port, site, interface=interface)
|
reactor.listenTCP(port, site, interface=interface)
|
||||||
reactor.run()
|
reactor.run()
|
||||||
|
|
||||||
|
|
|
@ -212,7 +212,8 @@ OxFF.prototype = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
req.open("POST", url, true, this.username, this.password);
|
//req.open("POST", url, true, this.username, this.password);
|
||||||
|
req.open("POST", url, true);
|
||||||
req.send(formData);
|
req.send(formData);
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue