HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/stielman.komma.nl/vendor/komma/kms/src/Core/HasEmptyPasswordTrait.php
<?php declare(strict_types=1);


namespace Komma\KMS\Core;

use Illuminate\Foundation\Auth\User;
use Illuminate\Support\Facades\Hash;

/**
 * Class HasEmptyPasswordTrait
 *
 *
 * @mixin User
 * @package Komma\KMS\Core
 */
trait HasEmptyPasswordTrait
{
    public function hasEmptyPassword(): bool {
        return (
            $this->getAuthPassword() == '' ||
            Hash::make($this->getAuthPassword()) == Hash::make('')
        );
    }
}