AFFiNE icon indicating copy to clipboard operation
AFFiNE copied to clipboard

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

Open StudyingLover opened this issue 11 months ago • 2 comments

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!

StudyingLover avatar Feb 29 '24 06:02 StudyingLover

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

forehalo avatar Feb 29 '24 08:02 forehalo

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

StudyingLover avatar Feb 29 '24 08:02 StudyingLover

@StudyingLover

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

forehalo avatar Mar 01 '24 06:03 forehalo