-
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
OV-3: add sign up flow #30
Conversation
backend/src/migrations/20240820093010_add_name_field_to_users_table.ts
Outdated
Show resolved
Hide resolved
@@ -5,58 +5,69 @@ class UserEntity implements Entity { | |||
|
|||
private 'email': string; | |||
|
|||
private 'name': string; |
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.
in design looks like we have Full Name
}; | ||
|
||
const userSignUp = z | ||
.object<UserSignUpRequestValidationDto>({ | ||
name: z.string().trim(), |
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.
We should validate, that name have at least 2 words
53c0a6a
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: |
@@ -53,6 +53,8 @@ class AuthController extends BaseController { | |||
* format: email | |||
* password: | |||
* type: string | |||
* name: |
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.
also change it to full name here
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.
Thanks Anton, it's done.
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.
looks like not resolved
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.
not all comment resolved
@@ -53,6 +53,8 @@ class AuthController extends BaseController { | |||
* format: email | |||
* password: | |||
* type: string | |||
* name: |
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.
looks like not resolved
You should change |
Hi @nikita-remeslov , @sofiia-trokhymchuk checked that |
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