mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
signup with invitecode to schema
This commit is contained in:
parent
f7b7588cbd
commit
81fdb1c80e
@ -71,6 +71,5 @@ export default {
|
||||
AddEmailAddress: sendEmailVerificationMail,
|
||||
requestPasswordReset: sendPasswordResetMail,
|
||||
Signup: sendSignupMail,
|
||||
SignupByInvitation: sendSignupMail,
|
||||
},
|
||||
}
|
||||
|
||||
@ -128,7 +128,6 @@ export default shield(
|
||||
Mutation: {
|
||||
'*': deny,
|
||||
login: allow,
|
||||
SignupByInvitation: allow,
|
||||
Signup: or(publicRegistration, isAdmin),
|
||||
SignupVerification: allow,
|
||||
UpdateUser: onlyYourself,
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user