Jump to content
  • Status: Moved to Github

Regular members cannot access settings.

TypeError: IPS\Login\Handler\OAuth2\Microsoft::_userData(): Argument #1 ($accessToken) must be of type string, null given, called in /system/Login/Handler/OAuth2/Microsoft.php on line 244 (0)
#0 /system/Login/Handler/OAuth2/Microsoft.php(244): IPS\Login\Handler\OAuth2\Microsoft->_userData(NULL)
#1 /applications/core/modules/front/system/settings.php(334): IPS\Login\Handler\OAuth2\Microsoft->userProfileName(Object(IPS\Member))
#2 /applications/core/modules/front/system/settings.php(120): IPS\core\modules\front\system\settings->_overview()
#3 /system/Dispatcher/Controller.php(139): IPS\core\modules\front\system\settings->manage()
#4 /applications/core/modules/front/system/settings.php(105): IPS\Dispatcher\Controller->execute()
#5 /system/Dispatcher/Dispatcher.php(169): IPS\core\modules\front\system\settings->execute()
#6 /index.php(16): IPS\Dispatcher->run()
#7 {main}

If user does not have Microsoft account linked they will get an error.
Can access pages in settings by direct links (except Microsoft tab).

User Feedback

Recommended Comments

There are no comments to display.