Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision

Target

Select target project
  • web-et-numerique/factory/pamn_plateforme-des-acteurs-de-la-mediation-numerique/pamn_server
1 result
Select Git revision
Show changes
Commits on Source (3)
......@@ -46,8 +46,6 @@ export class structureDto {
@ArrayNotEmpty()
publics: string[];
@IsNotEmpty()
freeWifi: boolean;
@IsNotEmpty()
freeWorkShop: boolean;
@IsNotEmpty()
nbComputers: number;
......
......@@ -4,7 +4,6 @@ import { IsNotEmpty } from 'class-validator';
export type AddressDocument = Address & Document;
export class Address {
@IsNotEmpty()
numero: string;
@IsNotEmpty()
......
......@@ -93,9 +93,6 @@ export class Structure {
@Prop()
equipmentsAndServices: string[];
@Prop()
freeWifi: boolean;
@Prop()
freeWorkShop: boolean;
......
......@@ -86,4 +86,9 @@ export class UsersController {
public async resetPasswordApply(@Body() passwordResetApplyDto: PasswordResetApplyDto) {
return this.usersService.validatePasswordResetToken(passwordResetApplyDto.password, passwordResetApplyDto.token);
}
@Post('verify-exist-user')
public async verifyUserExist(@Request() req, @Body() email: { newMail: string }) {
return this.usersService.verifyUserExist(email.newMail);
}
}
......@@ -407,4 +407,9 @@ export class UsersService {
user.save();
});
}
public async verifyUserExist(email: string): Promise<Boolean> {
const user = await this.findOne(email);
return user ? true : false;
}
}