You've already forked lldap
mirror of
https://github.com/lldap/lldap.git
synced 2026-04-05 12:32:57 +01:00
graphql: Add a method to update a user
This commit is contained in:
committed by
nitnelave
parent
0ac9e134de
commit
2954109d96
@@ -1,4 +1,4 @@
|
||||
mutation CreateUser($user: UserInput!) {
|
||||
mutation CreateUser($user: CreateUserInput!) {
|
||||
createUser(user: $user) {
|
||||
id
|
||||
creationDate
|
||||
|
||||
@@ -46,7 +46,7 @@ impl CreateUserForm {
|
||||
match msg {
|
||||
Msg::SubmitForm => {
|
||||
let req = create_user::Variables {
|
||||
user: create_user::UserInput {
|
||||
user: create_user::CreateUserInput {
|
||||
id: get_element("username")
|
||||
.filter(not_empty)
|
||||
.ok_or_else(|| anyhow!("Missing username"))?,
|
||||
|
||||
Reference in New Issue
Block a user