密码验证

验证#

API#

public function verify(string $email, string|int $password): bool

返回值#

类型:bool
示例:

  • 0:验证失败
  • 1:验证成功

用例#

use App\Http\Requests\UserRequest;
use App\Framework\Modules\Core\Services\VerificationService;
public function store(UserRequest $request,
VerificationService $verificationService): object
{
$email = $request->post("email");
$password = $request->post("password");
return $verificationService->verify($email, $password);
}
Last updated on by Yan Lee