Fix in app
This commit is contained in:
parent
b37316ce64
commit
2df08a0e7d
1 changed files with 7 additions and 6 deletions
|
|
@ -304,14 +304,17 @@ class AppController extends TplController{
|
|||
}
|
||||
|
||||
}
|
||||
else {
|
||||
|
||||
header('Location: '.PhangoApp\PhaRouter\Url::make_url('admin', 'app', ['login']));
|
||||
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
case 'logout':
|
||||
|
||||
unset($_SESSION['admin_login']);
|
||||
unset($_SESSION['double_auth']);
|
||||
unset($_SESSION['date_login']);
|
||||
$_SESSION=[];
|
||||
|
||||
header('Location: '.PhangoApp\PhaRouter\Url::make_url('admin'));
|
||||
|
||||
|
|
@ -338,8 +341,6 @@ class AppController extends TplController{
|
|||
$mail->Port=PhangoApp\PhaRouter\Config::$data['smtp_port'] ?? 587; //TCP port to connect to; use 587 if you have set `SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS`
|
||||
$mail->CharSet='UTF-8';
|
||||
|
||||
$auth_code=PhangoApp\PhaUtils\Utils::get_token(25);
|
||||
|
||||
$mail->setFrom($email_from, $portal_name);
|
||||
$mail->addAddress($email_to, $name);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue