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:
parent
88b2caffd5
commit
d3b6b1944c
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue