mirror of
https://github.com/friendica/friendica
synced 2024-11-19 16:23:40 +00:00
Update Base\Api::login to return the authentication status
This commit is contained in:
parent
919b1f45ab
commit
c239d218d8
1 changed files with 3 additions and 0 deletions
|
@ -54,6 +54,7 @@ class Api extends BaseModule
|
|||
*
|
||||
* @brief Login API user
|
||||
*
|
||||
* @return bool Was a user authenticated?
|
||||
* @throws HTTPException\ForbiddenException
|
||||
* @throws HTTPException\UnauthorizedException
|
||||
* @throws HTTPException\InternalServerErrorException
|
||||
|
@ -69,6 +70,8 @@ class Api extends BaseModule
|
|||
api_login(self::getApp());
|
||||
|
||||
self::$current_user_id = api_user();
|
||||
|
||||
return (bool)self::$current_user_id;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue