Skip to content
Snippets Groups Projects
Commit c49951ff authored by Hugo SUBTIL's avatar Hugo SUBTIL
Browse files

Merge branch 'feat/creationCompte' into 'dev'

feat(createAccount)  : Update create account form

See merge request web-et-numerique/pamn_plateforme-des-acteurs-de-la-mediation-numerique/pamn_server!15
parents 3ad4b8cc 3ae5b1a3
Branches
Tags
3 merge requests!27Recette,!26Dev,!15feat(createAccount) : Update create account form
...@@ -12,6 +12,18 @@ export class CreateUserDto { ...@@ -12,6 +12,18 @@ export class CreateUserDto {
@ApiProperty({ type: String }) @ApiProperty({ type: String })
email: string; email: string;
@IsNotEmpty()
@ApiProperty({ type: String })
name: string;
@IsNotEmpty()
@ApiProperty({ type: String })
surname: string;
@IsNotEmpty()
@ApiProperty({ type: String })
phone: string;
@IsArray() @IsArray()
@IsOptional() @IsOptional()
pendingStructuresLink?: Array<number>; pendingStructuresLink?: Array<number>;
......
...@@ -3,6 +3,9 @@ import { Document } from 'mongoose'; ...@@ -3,6 +3,9 @@ import { Document } from 'mongoose';
export interface IUser extends Document { export interface IUser extends Document {
readonly _id: string; readonly _id: string;
email: string; email: string;
name: string;
surname: string;
phone: string;
password: string; password: string;
emailVerified: boolean; emailVerified: boolean;
validationToken: string; validationToken: string;
......
...@@ -5,6 +5,15 @@ export class User { ...@@ -5,6 +5,15 @@ export class User {
@Prop({ required: true }) @Prop({ required: true })
email: string; email: string;
@Prop({ required: true })
name: string;
@Prop({ required: true })
surname: string;
@Prop({ required: true })
phone: string;
@Prop({ required: true }) @Prop({ required: true })
password: string; password: string;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment