<?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('')
);
}
}