-
Notifications
You must be signed in to change notification settings - Fork 0
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
Email password signup #33
base: create-unlink-hive-account-endpoint
Are you sure you want to change the base?
Email password signup #33
Conversation
sisygoboom
commented
Jul 12, 2024
- create email and password registration, along with tests and a dto for validation
- made sub completely optional, its now more like email address only used to find accounts, not for authentication
- did some refactoring, particularly in regard to hive username validation
- moved uniqueness validation for USB and email to the datalayer
}); | ||
try { | ||
await this.legacyUserRepository.createNewEmailUser({ email, user_id }); | ||
return await this.legacyUserAccountRepository.createNewEmailAndPasswordUser({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if you are doing this already, but the account shouldn't be active until the registration is completed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've made some changes to support this and its raised a question further down the pr
|
||
await this.emailService.sendRegistration(email, email_code); | ||
|
||
return { access_token: this.jwtSign({ network: 'email', user_id }) }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vaultec81 so you don't want them to have an access token til they verify their email?