Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
修复从带sid的链接进入网站后无法登录注册的问题
  • Loading branch information
SwimmingTiger committed Jul 28, 2023
1 parent c5f979f commit 03a5b4f
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/tpl/classic/html/user/active_step1.tpl
Expand Up @@ -5,7 +5,7 @@
<p class="failure">{$errMsg}</p>
</div>
<div id="active">
<form action="{$CID}.{$PID}.{$BID}?sid={$smarty.get.sid|code}" method="post">
<form action="{$smarty.server.PHP_SELF}/{$CID}.{$PID}.{$BID}?sid={$smarty.get.sid|code}" method="post">
<input type="hidden" name="step" value="1" />
<p>通过绑定手机号激活用户</p>
<p>请输入手机号码:</p>
Expand Down
2 changes: 1 addition & 1 deletion src/tpl/classic/html/user/login_form.tpl
Expand Up @@ -8,7 +8,7 @@
</div>
</div>
{div class="cr180_login"}
{form action="user.login.{$bid}?u={urlencode($u)}" method="post"}
{form action="{$smarty.server.PHP_SELF}/user.login.{$bid}?u={urlencode($u)}" method="post"}
<div>
<p>
登录类型:<select name="type">
Expand Down
4 changes: 2 additions & 2 deletions src/tpl/classic/html/user/reg_step1.tpl
Expand Up @@ -11,7 +11,7 @@
<p class="ft_pw"><strong>第一步:用户和密码</strong> -> 第二步:确认密码 -> 第三步:注册完成</p>
{/div}
{div class="content"}
{form action="user.reg.{$bid}?u={urlencode($u)}" method="post"}
{form action="{$smarty.server.PHP_SELF}/user.reg.{$bid}?u={urlencode($u)}" method="post"}
<div class="bm cr180_login">
<div>
<p>
Expand Down Expand Up @@ -59,4 +59,4 @@ $(document).ready(function() {
switchPasswordInput(document.querySelector('#pwdInputType'));
});
</script>
{include file="tpl:comm.foot"}
{include file="tpl:comm.foot"}
2 changes: 1 addition & 1 deletion src/tpl/jhin/html/user/active_step1.tpl
Expand Up @@ -10,7 +10,7 @@
<p class="failure">{$errMsg}</p>
</div>
<div id="active">
<form action="{$CID}.{$PID}.{$BID}?sid={$smarty.get.sid|code}" method="post">
<form action="{$smarty.server.PHP_SELF}/{$CID}.{$PID}.{$BID}?sid={$smarty.get.sid|code}" method="post">
<input type="hidden" name="step" value="1" />
<p>通过绑定手机号激活用户</p>
<p>请输入手机号码:</p>
Expand Down
2 changes: 1 addition & 1 deletion src/tpl/jhin/html/user/login_form.tpl
Expand Up @@ -13,7 +13,7 @@
</div>

<div class='login-form'>
<form action="user.login.{$bid}?u={urlencode($u)}" method="post">
<form action="{$smarty.server.PHP_SELF}/user.login.{$bid}?u={urlencode($u)}" method="post">
<div class="input-group">
登录类型:<select name="type">
<option value="1">用户名</option>
Expand Down
2 changes: 1 addition & 1 deletion src/tpl/jhin/html/user/reg_step1.tpl
Expand Up @@ -12,7 +12,7 @@
</div>
<div class='login-form'>
<p class="ft_pw"><strong>第一步:用户和密码</strong> -> 第二步:确认密码 -> 第三步:注册完成</p>
<form action="user.reg.{$bid}?u={urlencode($u)}" method="post">
<form action="{$smarty.server.PHP_SELF}/user.reg.{$bid}?u={urlencode($u)}" method="post">
<div class="input-group">
<label class="login-label" for="username">用户名</label>
<input type="text" id="username" name="name" autocomplete="off" size="25" maxlength="15" value="{$smarty.post.name}" class="txt" placeholder="" />
Expand Down

0 comments on commit 03a5b4f

Please sign in to comment.