mirror of
https://github.com/friendica/friendica
synced 2025-04-25 15:10:13 +00:00
Move PConfig::get() to DI::pConfig()->get()
This commit is contained in:
parent
6e2880c679
commit
9e9429b56d
61 changed files with 190 additions and 179 deletions
|
@ -275,7 +275,7 @@ class User
|
|||
$default_group = 0;
|
||||
|
||||
if ($network == Protocol::OSTATUS) {
|
||||
$default_group = PConfig::get($uid, "ostatus", "default_group");
|
||||
$default_group = DI::pConfig()->get($uid, "ostatus", "default_group");
|
||||
}
|
||||
|
||||
if ($default_group != 0) {
|
||||
|
@ -326,7 +326,7 @@ class User
|
|||
{
|
||||
$user = self::getAuthenticationInfo($user_info);
|
||||
|
||||
if ($third_party && PConfig::get($user['uid'], '2fa', 'verified')) {
|
||||
if ($third_party && DI::pConfig()->get($user['uid'], '2fa', 'verified')) {
|
||||
// Third-party apps can't verify two-factor authentication, we use app-specific passwords instead
|
||||
if (AppSpecificPassword::authenticateUser($user['uid'], $password)) {
|
||||
return $user['uid'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue