feat: register validation + create + admin improvements
This commit is contained in:
@@ -36,6 +36,12 @@ type AuthenticationMutation {
|
||||
securityCode: String!
|
||||
): DefaultResponse
|
||||
|
||||
register(
|
||||
email: String!
|
||||
password: String!
|
||||
name: String!
|
||||
): AuthenticationRegisterResponse
|
||||
|
||||
updateStrategies(
|
||||
strategies: [AuthenticationStrategyInput]
|
||||
): DefaultResponse @auth(requires: ["manage:system"])
|
||||
@@ -69,6 +75,11 @@ type AuthenticationLoginResponse {
|
||||
tfaLoginToken: String
|
||||
}
|
||||
|
||||
type AuthenticationRegisterResponse {
|
||||
responseResult: ResponseStatus
|
||||
jwt: String
|
||||
}
|
||||
|
||||
input AuthenticationStrategyInput {
|
||||
isEnabled: Boolean!
|
||||
key: String!
|
||||
|
Reference in New Issue
Block a user