hypercloud icon indicating copy to clipboard operation
hypercloud copied to clipboard

Add endpoint for admin to create new users

Open joehand opened this issue 7 years ago • 4 comments

Allows admins to create users. This allows skipping of email registration. Useful for centrally managing users or bulk creating users as admin.

joehand avatar Jun 26 '17 22:06 joehand

I realized this also skips the email whitelist, which wasn't intended but I think that makes sense.

joehand avatar Jun 26 '17 22:06 joehand

I suggest you add tests to make sure you can login and add archives using these accounts. I think you might be missing fields on the user record.

pfrazee avatar Jun 26 '17 22:06 pfrazee

https://github.com/datprotocol/hypercloud/blob/master/docs/schemas/leveldb.md#account-object isEmailVerified needs to be set to true

pfrazee avatar Jun 26 '17 22:06 pfrazee

Also you need to do the password hashing and etc https://github.com/datprotocol/hypercloud/blob/master/lib/apis/users.js#L61

pfrazee avatar Jun 26 '17 22:06 pfrazee