diff --git a/src/Protocol/FKOAuth1.php b/src/Network/FKOAuth1.php similarity index 90% rename from src/Protocol/FKOAuth1.php rename to src/Network/FKOAuth1.php index 710097ae0..a323f5cd5 100644 --- a/src/Protocol/FKOAuth1.php +++ b/src/Network/FKOAuth1.php @@ -2,13 +2,13 @@ /** * @file src/Protocol/OAuth1.php */ -namespace Friendica\Protocol; +namespace Friendica\Network; use Friendica\App; use Friendica\Core\PConfig; use Friendica\Core\System; use Friendica\Database\DBM; -use Friendica\Protocol\FKOAuthDataStore; +use Friendica\Network\FKOAuthDataStore; use dba; require_once "library/OAuth1.php"; @@ -70,10 +70,7 @@ class FKOAuth1 extends OAuthServer $_SESSION['cid'] = $a->cid; } - dba::q("UPDATE `user` SET `login_date` = '%s' WHERE `uid` = %d", - dbesc(datetime_convert()), - intval($_SESSION['uid']) - ); + dba::update('user', ['login_date' => datetime_convert()], ['uid' => $_SESSION['uid']]); call_hooks('logged_in', $a->user); } diff --git a/src/Protocol/FKOAuthDataStore.php b/src/Network/FKOAuthDataStore.php similarity index 99% rename from src/Protocol/FKOAuthDataStore.php rename to src/Network/FKOAuthDataStore.php index dc4b774b9..007908b99 100644 --- a/src/Protocol/FKOAuthDataStore.php +++ b/src/Network/FKOAuthDataStore.php @@ -5,7 +5,7 @@ * Based on oauth2-php * */ -namespace Friendica\Protocol; +namespace Friendica\Network; use Friendica\App; use Friendica\Core\Config;