1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-05 19:42:38 +02:00
DanielnetoDotCom 2020-09-10 15:40:09 -03:00
parent 8468ec06d3
commit af4585e40c
5 changed files with 23 additions and 1 deletions

View file

@ -1969,6 +1969,9 @@ if (typeof gtag !== \"function\") {
}
}
}
if(!empty($_REQUEST['do_not_login'])){
return false;
}
if(!empty($_REQUEST['user']) && !empty($_REQUEST['pass'])){
$user = new User(0, $_REQUEST['user'], $_REQUEST['pass']);
$user->login(false, !empty($_REQUEST['encodedPass']));