1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 01:39:24 +02:00

Add set_api_user method to handle user authentication

This commit is contained in:
Daniel Neto 2025-06-30 15:27:25 -03:00
parent 88b2caffd5
commit d3b6b1944c

View file

@ -2834,6 +2834,12 @@ class API extends PluginAbstract
]
)]
public function set_api_user($parameters)
{
// this is necessary when we post a username and password
return $this->get_api_user($parameters);
}
public function get_api_user($parameters)
{
global $global;