feat : maj du mot de passe
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import { AuthRepository } from '@app/domain/authentification/auth.repository';
|
||||
|
||||
export class ConfirmPasswordResetUsecase {
|
||||
constructor(private readonly authRepo: AuthRepository) {}
|
||||
|
||||
execute(resetToken: string, newPassword: string, confirmPassword: string) {
|
||||
return this.authRepo.confirmPasswordReset(resetToken, newPassword, confirmPassword);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
import { AuthRepository } from '@app/domain/authentification/auth.repository';
|
||||
|
||||
export class SendRequestPasswordResetUsecase {
|
||||
constructor(private readonly authRepo: AuthRepository) {}
|
||||
|
||||
execute(email: string) {
|
||||
return this.authRepo.sendRequestPasswordReset(email);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user