mirror of
https://github.com/YunoHost-Apps/ttrss_ynh.git
synced 2024-10-01 13:34:46 +02:00
Update init.php
This commit is contained in:
parent
be68ae4975
commit
d6a0b7d16a
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ class Auth_Remote extends Plugin implements IAuthModule {
|
|||
$user_id);
|
||||
}
|
||||
// update user password to allow api access
|
||||
if (isset($_SERVER['PHP_AUTH_PW']){
|
||||
if (isset($_SERVER['PHP_AUTH_PW'])){
|
||||
$currentpassword = $_SERVER['PHP_AUTH_PW'];
|
||||
$new_salt = substr(bin2hex(get_random_bytes(125)), 0, 250);
|
||||
$new_password_hash = encrypt_password($currentpassword, $new_salt, true);
|
||||
|
|
Loading…
Add table
Reference in a new issue