diff --git a/client/cypress/fixtures/schema_public.json b/client/cypress/fixtures/schema_public.json index 9f585c53..424077d4 100644 --- a/client/cypress/fixtures/schema_public.json +++ b/client/cypress/fixtures/schema_public.json @@ -102,6 +102,34 @@ "deprecationReason": null }, { + "name": "betaLogin", + "description": null, + "args": [ + { + "name": "input", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "BetaLoginInput", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "OBJECT", + "name": "BetaLoginPayload", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "__debug", "description": null, "args": [], "type": { @@ -294,22 +322,6 @@ "isDeprecated": false, "deprecationReason": null }, - { - "name": "errors", - "description": null, - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "LoginError", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, { "name": "clientMutationId", "description": null, @@ -328,29 +340,6 @@ "enumValues": null, "possibleTypes": null }, - { - "kind": "OBJECT", - "name": "LoginError", - "description": null, - "fields": [ - { - "name": "field", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, { "kind": "INPUT_OBJECT", "name": "LoginInput", @@ -382,6 +371,94 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "BetaLoginPayload", + "description": null, + "fields": [ + { + "name": "success", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "message", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "clientMutationId", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "BetaLoginInput", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "usernameInput", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "passwordInput", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "clientMutationId", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "DjangoDebug", @@ -1490,5 +1567,4 @@ } ] } - } diff --git a/client/cypress/integration/local-login.spec.js b/client/cypress/integration/beta-login.spec.js similarity index 100% rename from client/cypress/integration/local-login.spec.js rename to client/cypress/integration/beta-login.spec.js diff --git a/client/cypress/support/commands.js b/client/cypress/support/commands.js index 9fa9e1f2..43b78bfb 100644 --- a/client/cypress/support/commands.js +++ b/client/cypress/support/commands.js @@ -32,14 +32,14 @@ import '@iam4x/cypress-graphql-mock'; Cypress.Commands.add('apolloLogin', (username, password) => { const payload = { - 'operationName': 'LocalLogin', + 'operationName': 'BetaLogin', 'variables': { 'input': { 'usernameInput': username, 'passwordInput': password } }, - 'query': 'mutation LocalLogin($input: LocalLoginInput!) {\n localLogin(input: $input) {\n success\n errors {\n field\n __typename\n }\n __typename\n }\n}\n' + 'query': 'mutation BetaLogin($input: BetaLoginInput!) {\n betaLogin(input: $input) {\n success\n errors {\n field\n __typename\n }\n __typename\n }\n}\n' }; cy.request({ diff --git a/client/src/graphql/gql/mutations/betaLogin.gql b/client/src/graphql/gql/mutations/betaLogin.gql new file mode 100644 index 00000000..3275f77a --- /dev/null +++ b/client/src/graphql/gql/mutations/betaLogin.gql @@ -0,0 +1,6 @@ +mutation BetaLogin($input: BetaLoginInput!) { + betaLogin(input: $input) { + success + message + } +} diff --git a/client/src/graphql/gql/mutations/login.gql b/client/src/graphql/gql/mutations/login.gql index e1f9d7d1..c687d933 100644 --- a/client/src/graphql/gql/mutations/login.gql +++ b/client/src/graphql/gql/mutations/login.gql @@ -2,8 +2,5 @@ mutation Login($input: LoginInput!) { login(input: $input) { success message - errors { - field - } } } diff --git a/client/src/graphql/gql/mutations/loginLocal.gql b/client/src/graphql/gql/mutations/loginLocal.gql deleted file mode 100644 index 7646aa32..00000000 --- a/client/src/graphql/gql/mutations/loginLocal.gql +++ /dev/null @@ -1,9 +0,0 @@ -mutation LocalLogin($input: LocalLoginInput!) { - localLogin(input: $input) { - success - message - errors { - field - } - } -} diff --git a/client/src/pages/login-local.vue b/client/src/pages/beta-login.vue similarity index 96% rename from client/src/pages/login-local.vue rename to client/src/pages/beta-login.vue index 0105e224..56559ec1 100644 --- a/client/src/pages/login-local.vue +++ b/client/src/pages/beta-login.vue @@ -71,7 +71,7 @@