diff options
Diffstat (limited to 'cgi/modapi.py')
-rw-r--r-- | cgi/modapi.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cgi/modapi.py b/cgi/modapi.py index 499535e..ba53026 100644 --- a/cgi/modapi.py +++ b/cgi/modapi.py @@ -30,7 +30,7 @@ def api(self, path_split): def api_process(self, path_split): formdata = self.formdata - ip = self.environ["REMOTE_ADDR"] + ip = self.ip t = time.time() method = path_split[2] values = {'state': 'success'} @@ -64,7 +64,7 @@ def api_process(self, path_split): str(timestamp() - 604800)) # one week else: logAction('', 'Failed log-in. Username:'+_mysql.escape_string( - self.formdata['username'])+' IP:'+self.environ["REMOTE_ADDR"]) + self.formdata['username'])+' IP:'+self.ip) raise APIError("Incorrect username/password.") else: raise APIError("Bad request") |