|
@@ -74,10 +74,13 @@ if (preg_match('/'.preg_quote('core/modules/oauth', '/').'/', $php_self)) {
|
|
|
$php_self = DOL_URL_ROOT.'/index.php?mainmenu=home';
|
|
|
}
|
|
|
$php_self = preg_replace('/(\?|&|&)action=[^&]+/', '\1', $php_self);
|
|
|
+$php_self = preg_replace('/(\?|&|&)actionlogin=[^&]+/', '\1', $php_self);
|
|
|
+$php_self = preg_replace('/(\?|&|&)afteroauthloginreturn=[^&]+/', '\1', $php_self);
|
|
|
$php_self = preg_replace('/(\?|&|&)username=[^&]*/', '\1', $php_self);
|
|
|
$php_self = preg_replace('/(\?|&|&)entity=\d+/', '\1', $php_self);
|
|
|
$php_self = preg_replace('/(\?|&|&)massaction=[^&]+/', '\1', $php_self);
|
|
|
$php_self = preg_replace('/(\?|&|&)token=[^&]+/', '\1', $php_self);
|
|
|
+$php_self = preg_replace('/(&)+/', '&', $php_self);
|
|
|
|
|
|
// Javascript code on logon page only to detect user tz, dst_observed, dst_first, dst_second
|
|
|
$arrayofjs = array(
|
|
@@ -375,7 +378,7 @@ if (isset($conf->file->main_authentication) && preg_match('/google/', $conf->fil
|
|
|
*/
|
|
|
|
|
|
print '<input type="hidden" name="beforeoauthloginredirect" id="beforeoauthloginredirect" value="">';
|
|
|
- print '<a class="alogin" href="#" onclick="jQuery(\'#beforeoauthloginredirect\').val(\'google\'); $(this).closest(\'form\').submit();">';
|
|
|
+ print '<a class="alogin" href="#" onclick="console.log(\'Set beforeoauthloginredirect value\'); jQuery(\'#beforeoauthloginredirect\').val(\'google\'); $(this).closest(\'form\').submit(); return false;">';
|
|
|
print '<div class="loginbuttonexternal">';
|
|
|
print img_picto('', 'google', 'class="pictofixedwidth"');
|
|
|
print $langs->trans("LoginWith", "Google");
|