瀏覽代碼

feat: adiciona background

ebagabee 1 月之前
父節點
當前提交
a23f9f4f61
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Services/AuthService.php

+ 1 - 1
app/Services/AuthService.php

@@ -24,7 +24,7 @@ public function login(string $email, string $password, string $origem): ?array
         $user = User::where("email", $email)->first();
 
         if ($origem === 'admin') {
-            if ($user->user_type !== UserTypeEnum::ADMIN->value) {
+            if ($user->user_type !== UserTypeEnum::ADMIN) {
                 throw new Exception('credenciais invalidas para acesso de franqueadora');
             }
         }