hypercloud
hypercloud copied to clipboard
Add endpoint for admin to create new users
Allows admins to create users. This allows skipping of email registration. Useful for centrally managing users or bulk creating users as admin.
I realized this also skips the email whitelist, which wasn't intended but I think that makes sense.
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.
https://github.com/datprotocol/hypercloud/blob/master/docs/schemas/leveldb.md#account-object isEmailVerified needs to be set to true
Also you need to do the password hashing and etc https://github.com/datprotocol/hypercloud/blob/master/lib/apis/users.js#L61