Fix reset password component

This commit is contained in:
Chocobozzz
2019-01-11 13:58:29 +01:00
parent 54bae359a1
commit df4d3892c3
8 changed files with 94 additions and 54 deletions

View File

@@ -10,3 +10,20 @@ mutation Login($email: String!, $password: String!) {
},
}
`;
export const SEND_RESET_PASSWORD = gql`
mutation SendResetPassword($email: String!) {
sendResetPassword(email: $email)
}
`;
export const RESET_PASSWORD = gql`
mutation ResetPassword($token: String!, $password: String!) {
resetPassword(token: $token, password: $password) {
token,
user {
id,
}
},
}
`;