Last active
January 17, 2018 03:58
-
-
Save RadiationX/526e2948125ea1b2c6862cf9b51950a2 to your computer and use it in GitHub Desktop.
Bitrix фикс слетающей авторизации через соцсеть
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Файл: bitrix/modules/socialservices/classes/general/authmanager.php | |
Примерно строка 1241, добавляем параметр "true" для вызова метода AuthorizeWithOtp | |
... | |
$USER->AuthorizeWithOtp($USER_ID, true); | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Файл: 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