Core/Auth/Auth.php
public function changePassword($username, $newPass)
    {
        $password = $this->hasher->HashPassword($newPass);
        return $this
            ->conn
            ->prepare(sprintf("UPDATE %s SET user_pass=:newPass WHERE user_name = :username", $this->table))
            ->execute(['newPass' => $password, 'username' => $username]);
    }
public function changePassword($username, $newPass)
    {
        $password = $this->hasher->HashPassword($newPass);
        return $this
            ->conn
            ->prepare(sprintf("UPDATE %s SET user_pass=:newPass WHERE user_name = :username", $this->table))
            ->execute(['newPass' => $password, 'username' => $username]);
    }
public function changePassword ( $ username , $ newPass ) { $ password = $ this -> hasher -> HashPassword ( $ newPass ) ; return $ this -> conn -> prepare ( sprintf ( "UPDATE %s SET user_pass=:newPass WHERE user_name = :username" , $ this -> table ) ) -> execute ( [ 'newPass' => $ password , 'username' => $ username ] ) ; }
Change user password.

@param  string $username
@param  string $newPass
@return bool
Change user password .