Skip to content

Commit

Permalink
Merge pull request #14 from LittleJake/develop
Browse files Browse the repository at this point in the history
Update SSL
  • Loading branch information
LittleJake authored Jan 24, 2024
2 parents 01e2bc8 + 913a018 commit 874a254
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion application/admin/view/index/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<form>
<div class="mdui-textfield">
<label class="mdui-textfield-label">Login Token</label>
<input class="mdui-textfield-input" autocomplete="off" type="text" name="token" />
<input class="mdui-textfield-input" autocomplete="off" type="password" name="token" />
</div>
<div id="recaptcha"></div>
<br/>
Expand Down
2 changes: 1 addition & 1 deletion application/common/lib/SystemMonitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ static private function curlGet($url)
curl_setopt($curl, CURLOPT_HTTPHEADER, $header);
//设置获取的信息以文件流的形式返回,而不是直接输出。
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, TRUE);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, TRUE);
//执行命令
$data = curl_exec($curl);
Expand Down
2 changes: 1 addition & 1 deletion application/common/lib/reCaptcha.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function validate($response, $ip = ''){
private function post($data) {
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $this->recaptcha_url);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, TRUE);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST,TRUE);
curl_setopt($curl, CURLOPT_POST, 1);
curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
Expand Down

0 comments on commit 874a254

Please sign in to comment.