فهرست منبع

fix(core): Return NotVerifiedError for resetPassword on unverified user

Fixes #1321
Michael Bromley 4 سال پیش
والد
کامیت
8257d2740d

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 747 - 732
packages/common/src/generated-shop-types.ts


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 710 - 695
packages/core/e2e/graphql/generated-e2e-shop-types.ts


+ 3 - 0
packages/core/src/api/resolvers/shop/shop-auth.resolver.ts

@@ -237,6 +237,9 @@ export class ShopAuthResolver extends BaseAuthResolver {
             req,
             res,
         );
+        if (isGraphQlErrorResult(authResult) && authResult.__typename === 'NotVerifiedError') {
+            return authResult;
+        }
         if (isGraphQlErrorResult(authResult)) {
             // This should never occur in theory
             throw authResult;

+ 1 - 0
packages/core/src/api/schema/shop-api/shop.api.graphql

@@ -239,6 +239,7 @@ union ResetPasswordResult =
     | PasswordResetTokenInvalidError
     | PasswordResetTokenExpiredError
     | NativeAuthStrategyError
+    | NotVerifiedError
 union NativeAuthenticationResult =
       CurrentUser
     | InvalidCredentialsError

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 710 - 695
packages/payments-plugin/e2e/graphql/generated-shop-types.ts


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
schema-admin.json


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
schema-shop.json


برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است