mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Debug v18
This commit is contained in:
parent
49faae3a0b
commit
a716e6d95b
|
|
@ -284,6 +284,10 @@ if (!empty($morelogincontent)) {
|
|||
|
||||
|
||||
<?php
|
||||
if (isset($conf->file->main_authentication) && $conf->file->main_authentication == 'googleoauth') {
|
||||
$forgetpasslink = '';
|
||||
}
|
||||
|
||||
if ($forgetpasslink || $helpcenterlink) {
|
||||
$moreparam = '';
|
||||
if ($dol_hide_topmenu) {
|
||||
|
|
@ -301,7 +305,7 @@ if ($forgetpasslink || $helpcenterlink) {
|
|||
|
||||
echo '<br>';
|
||||
echo '<div class="center" style="margin-top: 5px;">';
|
||||
if ($forgetpasslink && (!isset($conf->file->main_authentication) || $conf->file->main_authentication != 'googleoauth')) {
|
||||
if ($forgetpasslink) {
|
||||
$url = DOL_URL_ROOT.'/user/passwordforgotten.php'.$moreparam;
|
||||
if (!empty($conf->global->MAIN_PASSWORD_FORGOTLINK)) {
|
||||
$url = $conf->global->MAIN_PASSWORD_FORGOTLINK;
|
||||
|
|
|
|||
|
|
@ -45,13 +45,15 @@ if (!defined('EVEN_IF_ONLY_LOGIN_ALLOWED')) {
|
|||
|
||||
require_once '../main.inc.php';
|
||||
|
||||
// This can happen only with a bookmark or forged url call.
|
||||
// This can happen only with a bookmark or a forged url call.
|
||||
if (!empty($_SESSION["dol_authmode"]) && ($_SESSION["dol_authmode"] == 'forceuser' || $_SESSION["dol_authmode"] == 'http')) {
|
||||
unset($_SESSION["dol_login"]);
|
||||
unset($_SESSION['dol_entity']);
|
||||
unset($_SESSION['urlfrom']);
|
||||
die("Applicative disconnection should be useless when connection was made in mode ".$_SESSION["dol_authmode"]);
|
||||
}
|
||||
|
||||
global $conf, $langs, $user;
|
||||
//global $conf, $langs, $user;
|
||||
|
||||
// Call trigger
|
||||
$result = $user->call_trigger('USER_LOGOUT', $user);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user