Răsfoiți Sursa

:bug: link 替换字符串错误

visuddhinanda 4 ani în urmă
părinte
comite
d01f02ddab
1 a modificat fișierele cu 4 adăugiri și 4 ștergeri
  1. 4 4
      app/db/user.php

+ 4 - 4
app/db/user.php

@@ -171,9 +171,9 @@ class User extends Table
 			if($ok){
 				#send email
 				$resetLink="https://www.wikipali.org/ucenter/reset.php?token=".$resetToken;
-				$resetString="https://www.wikipali.org/ucenter/reset.php?token=".$resetToken;
+				$resetString="https://www.wikipali.org/ucenter/reset.php";
 		
-					// 打开文件并读取数据
+				// 打开文件并读取数据
 				$irow=0;
 				$strSubject = "";
 				$strBody = "";
@@ -195,8 +195,8 @@ class User extends Table
 					return;
 				}
 		
-				$strBody = str_replace("%resetLink%",$resetLink,$strBody);
-				$strBody = str_replace("%resetString%",$resetString,$strBody);
+				$strBody = str_replace("%ResetLink%",$resetLink,$strBody);
+				$strBody = str_replace("%ResetString%",$resetString,$strBody);
 		
 				//TODO sendmail