Browse Source

登陆注释

bianjunhui 4 months ago
parent
commit
ff80781d83
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/Webkul/BagistoApi/src/State/LoginProcessor.php

+ 2 - 2
packages/Webkul/BagistoApi/src/State/LoginProcessor.php

@@ -20,7 +20,7 @@ class LoginProcessor implements ProcessorInterface
     public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = [])
     {
         if ($data instanceof LoginInput) {
-            if ($operation->getName() === 'create') {
+            //if ($operation->getName() === 'create') {
                 $this->validator->validateLoginInput($data);
 
                 $customer = Customer::where('email', $data->email)->first();
@@ -71,7 +71,7 @@ class LoginProcessor implements ProcessorInterface
                     'success'  => true,
                     'message'  => __('bagistoapi::app.graphql.login.successful'),
                 ];
-            }
+            //}
         }
 
         return (object) [