signup with invitecode to schema

This commit is contained in:
Moriz Wahl 2021-03-04 16:18:55 +01:00
parent f7b7588cbd
commit 81fdb1c80e
3 changed files with 2 additions and 4 deletions

View File

@ -71,6 +71,5 @@ export default {
AddEmailAddress: sendEmailVerificationMail,
requestPasswordReset: sendPasswordResetMail,
Signup: sendSignupMail,
SignupByInvitation: sendSignupMail,
},
}

View File

@ -128,7 +128,6 @@ export default shield(
Mutation: {
'*': deny,
login: allow,
SignupByInvitation: allow,
Signup: or(publicRegistration, isAdmin),
SignupVerification: allow,
UpdateUser: onlyYourself,

View File

@ -9,11 +9,11 @@ type Query {
}
type Mutation {
Signup(email: String!): EmailAddress
SignupByInvitation(email: String!, token: String!): EmailAddress
Signup(email: String!, inviteCode: String): EmailAddress
SignupVerification(
nonce: String!
email: String!
inviteCode: String
name: String!
password: String!
slug: String