https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Several more warnings ... (#5340)
[friendica.git/.git]
/
include
/
api.php
diff --git
a/include/api.php
b/include/api.php
index
dd8daa9
..
4e8e9c2
100644
(file)
--- a/
include/api.php
+++ b/
include/api.php
@@
-169,7
+169,8
@@
function api_login(App $a)
$oauth1 = new FKOAuth1();
// login with oauth
try {
$oauth1 = new FKOAuth1();
// login with oauth
try {
- list($consumer, $token) = $oauth1->verify_request(OAuthRequest::from_request());
+ $request = OAuthRequest::from_request();
+ list($consumer, $token) = $oauth1->verify_request($request);
if (!is_null($token)) {
$oauth1->loginUser($token->uid);
Addon::callHooks('logged_in', $a->user);
if (!is_null($token)) {
$oauth1->loginUser($token->uid);
Addon::callHooks('logged_in', $a->user);