* finish task #2501.

This commit is contained in:
chenfeiCF
2016-03-01 02:09:18 +08:00
parent 8a604925ee
commit 7f66f2018e
5 changed files with 49 additions and 0 deletions
+3
View File
@@ -658,6 +658,9 @@ class user extends control
if($this->app->getViewType() == 'json') die(helper::removeUTF8Bom(json_encode(array('status' => 'failed', 'reason' => $failReason))));
die(js::error($failReason));
}
/* Check the login ip is in white list or not. */
if(!$this->user->checkIP($this->server->remote_addr)) die(js::error($this->lang->user->ipLimited));
$user = $this->user->identify($account, $password);