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

OV-3: add sign up flow #30

Merged
merged 25 commits into from
Aug 28, 2024
Merged

OV-3: add sign up flow #30

merged 25 commits into from
Aug 28, 2024

Conversation

JPjok3r
Copy link
Contributor

@JPjok3r JPjok3r commented Aug 20, 2024

Added migration file to create name field in users table
Modified user model and service to save user
Encryption service used
Endpoint /auth/sign-up added, returning object excluding passwords fields
validation checked with the FE code

@JPjok3r JPjok3r added the BE Backend feature label Aug 20, 2024
@JPjok3r JPjok3r added this to the Release 1.0 milestone Aug 20, 2024
@JPjok3r JPjok3r self-assigned this Aug 20, 2024
@JPjok3r JPjok3r linked an issue Aug 20, 2024 that may be closed by this pull request
12 tasks
@JPjok3r JPjok3r changed the title Task/ov 3 add sign up flow OV-3: add sign up flow Aug 20, 2024
sergiy4
sergiy4 previously approved these changes Aug 21, 2024
@@ -5,58 +5,69 @@ class UserEntity implements Entity {

private 'email': string;

private 'name': string;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in design looks like we have Full Name

};

const userSignUp = z
.object<UserSignUpRequestValidationDto>({
name: z.string().trim(),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should validate, that name have at least 2 words

@JPjok3r
Copy link
Contributor Author

JPjok3r commented Aug 21, 2024

Hi @nikita-remeslov I checked and finished with the observation you made, when you have time you can check it, I based on the front-end code for:
shared/src/bundles/users/enums/user-validation-message.enum.ts
shared/src/bundles/users/enums/user-validation-rule.enum.ts

@@ -53,6 +53,8 @@ class AuthController extends BaseController {
* format: email
* password:
* type: string
* name:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also change it to full name here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Anton, it's done.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like not resolved

Copy link
Collaborator

@nikita-remeslov nikita-remeslov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not all comment resolved

@@ -53,6 +53,8 @@ class AuthController extends BaseController {
* format: email
* password:
* type: string
* name:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like not resolved

@sofiia-trokhymchuk
Copy link
Collaborator

You should change name to fullName everywhere where needed for consistency

@JPjok3r
Copy link
Contributor Author

JPjok3r commented Aug 27, 2024

Hi @nikita-remeslov , @sofiia-trokhymchuk checked that name changed to fullName, checked that when trying to create a new user with an email that already exists show a better message, you can check it

@nikita-remeslov nikita-remeslov merged commit 46bf15d into next Aug 28, 2024
2 checks passed
@nikita-remeslov nikita-remeslov deleted the task/OV-3-add-sign-up-flow branch August 28, 2024 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BE Backend feature
Projects
Status: To Be Tested
Development

Successfully merging this pull request may close these issues.

FEAT: Sign Up flow
6 participants