Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to create a new account on self-hosted affine ​ #5957

Closed
1 task
StudyingLover opened this issue Feb 29, 2024 · 3 comments
Closed
1 task

How to create a new account on self-hosted affine ​ #5957

StudyingLover opened this issue Feb 29, 2024 · 3 comments

Comments

@StudyingLover
Copy link

What happened?

I deploy a affine bu docker, and login in by admin user acoount. Now I want to create a new account to my co-worder, but I didn't find how to create a new account. What should I do?

Distribution version

Linux

What browsers are you seeing the problem on if you're using web version?

No response

Relevant log output

No response

Anything else?

No response

Are you willing to submit a PR?

  • Yes I'd like to help by submitting a PR!
@forehalo
Copy link
Member

Currently the only way to register a new user is by sending magic link through email if configured.

We do provide a GraphQL mutation to sign up but the UI is not implemented yet.

So if it won't bother you, you may open http://your-host-of-affine.com/graphql, the GraphQL playground and manually call the api:

image

@StudyingLover
Copy link
Author

oooo! Can you paste the code for create new account in your picture?
btw, what is magic link, how to configure it?

@forehalo
Copy link
Member

forehalo commented Mar 1, 2024

@StudyingLover

mutation {
  signUp(email: "YOUR_EMAIL_ADDRESS", name: "NAME", password: "PASSOWRD" {
    id
  }
}

@EYHN EYHN closed this as completed Mar 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

3 participants