Fix user registration and validation

This commit is contained in:
Chocobozzz
2018-12-28 16:13:33 +01:00
parent 649bc5624d
commit d8dde92c86
4 changed files with 39 additions and 42 deletions

View File

@@ -3,11 +3,8 @@ import gql from 'graphql-tag';
export const CREATE_USER = gql`
mutation CreateUser($email: String!, $username: String!, $password: String!) {
createUser(email: $email, username: $username, password: $password) {
preferredUsername,
user {
email,
confirmationSentAt
}
email,
confirmationSentAt
}
}
`;
@@ -18,10 +15,6 @@ mutation ValidateUser($token: String!) {
token,
user {
id,
},
actor {
avatarUrl,
preferredUsername,
}
}
}