Skip to content

Commit

Permalink
fix 避免通过相同txt记录关联域名所有人身份
Browse files Browse the repository at this point in the history
避免通过相同txt记录关联域名所有人身份
  • Loading branch information
Netrvin committed Feb 9, 2021
1 parent 3d43400 commit 91444a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function msg($s)
if ($r["result"] == "success") {
$_SESSION["user_key"] = $r["response"]["user_key"];
$_SESSION["email"] = $r["response"]["cloudflare_email"];
if (Enable_TXT_Verification) $_SESSION["txt_verification"] = password_hash(Random_String.$_SESSION["email"],PASSWORD_BCRYPT );
//if (Enable_TXT_Verification) $_SESSION["txt_verification"] = password_hash(Random_String.$_SESSION["email"],PASSWORD_BCRYPT );
header("Location: domains.php");
} else {
msg("失败:" . $r["msg"]);
Expand Down
2 changes: 1 addition & 1 deletion domains.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class="mdui-btn mdui-ripple mdui-shadow-4">添加域名
</div>
<?php if (Enable_TXT_Verification): ?>
<p class="mdui-typo" style="text-align: center;">
请在此域名添加名称为 cfpmp 的 TXT 记录<code style="display: block;"><?=$_SESSION["txt_verification"]?></code>此记录可在验证完毕后删除
请在此域名添加名称为 cfpmp 的 TXT 记录<code style="display: block;"><?=password_hash(Random_String.$_SESSION["email"],PASSWORD_BCRYPT)?></code>此记录可在验证完毕后删除
</p>
<?php endif; ?>
</div>
Expand Down

0 comments on commit 91444a3

Please sign in to comment.