Skip to content

Instantly share code, notes, and snippets.

@RadiationX
Last active January 17, 2018 03:58
Show Gist options
  • Save RadiationX/526e2948125ea1b2c6862cf9b51950a2 to your computer and use it in GitHub Desktop.
Save RadiationX/526e2948125ea1b2c6862cf9b51950a2 to your computer and use it in GitHub Desktop.
Bitrix фикс слетающей авторизации через соцсеть
Файл: bitrix/modules/socialservices/classes/general/authmanager.php
Примерно строка 1241, добавляем параметр "true" для вызова метода AuthorizeWithOtp
...
$USER->AuthorizeWithOtp($USER_ID, true);
...
Файл: bitrix/modules/main/classes/general/user.php
Примерно строка 1077, добавляем параметр $bSave = false в функцию AuthorizeWithOtp
...
public function AuthorizeWithOtp($user_id, $bSave = false)
...
Примерно строка 1094, добавляем параметр $bSave для вызова функции Authorize
...
if($doAuthorize)
{
return $this->Authorize($user_id, $bSave);
}
...
Примерно после строки 229, добавляем строку $bExternal = false;
...
//there is no stored auth for external authorization, but domain spread auth should work
$bExternal = ($arUser["EXTERNAL_AUTH_ID"] <> '');
$bExternal = false;
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment