This commit is contained in:
@@ -58,6 +58,7 @@ class User extends Controller {
|
||||
*/
|
||||
public function checkLogin() {
|
||||
$data = $this->request->post();
|
||||
|
||||
if($data['username']=='fariba'||$data['username']=='Mohammad Hossein'||$data['username']=='xiaoyueyue'||$data['username']=='sethlee000'||$data['username']=='yuanying9908'){
|
||||
return json(['code'=>1,'msg'=>'Your account has been blocked. Please contact the publisher for details: publisher@tmrjournals.com.']);
|
||||
}
|
||||
@@ -291,7 +292,7 @@ class User extends Controller {
|
||||
$tt .= "Username:$account<br>";
|
||||
$tt .= "Password:" . $data['password'] . '<br><br>';
|
||||
$tt .= "Many thanks<br>TMR Publishing Group";
|
||||
sendEmail($email, 'Dear ' . $data['name'], 'TMR', $tt,);
|
||||
sendEmail($email, 'Dear ' . $data['name'], 'TMR', $tt);
|
||||
return json($inser_data);
|
||||
}
|
||||
|
||||
@@ -370,7 +371,7 @@ class User extends Controller {
|
||||
$url = config('base_web_url') . 'retrieveact?actkey=' . $act_insert['act_key'];
|
||||
$title = 'Your request to reset your password [TMR Publishing Group]';
|
||||
$content = "$realname, we've received your request to reset your password.Please click the link below to change your password. <a href='$url' target='_blank'>$url</a>";
|
||||
$res = sendEmail($email, $title, 'TMR', $content,);
|
||||
$res = sendEmail($email, $title, 'TMR', $content);
|
||||
if ($res['status'] == 1) {//成功
|
||||
return json(['code' => 0, 'msg' => 'success']);
|
||||
} else {//失败
|
||||
|
||||
Reference in New Issue
Block a user