add comment in Model User

This commit is contained in:
Art4 2024-12-04 21:45:13 +00:00
parent 07e9f0f54a
commit 7b892fac9c

View file

@ -521,7 +521,6 @@ class User
/** /**
* Get owner data by nick name * Get owner data by nick name
* *
* @param int $nick
* @return boolean|array * @return boolean|array
* @throws Exception * @throws Exception
*/ */
@ -1215,6 +1214,7 @@ class User
$_SESSION['openid'] = $openid_url; $_SESSION['openid'] = $openid_url;
$openid = new LightOpenID(DI::baseUrl()->getHost()); $openid = new LightOpenID(DI::baseUrl()->getHost());
// $openid->identity is private and cannot be set
$openid->identity = $openid_url; $openid->identity = $openid_url;
$openid->returnUrl = DI::baseUrl() . '/openid'; $openid->returnUrl = DI::baseUrl() . '/openid';
$openid->required = ['namePerson/friendly', 'contact/email', 'namePerson']; $openid->required = ['namePerson/friendly', 'contact/email', 'namePerson'];