[WIP] Fixed forgot password #70

This commit is contained in:
2022-10-18 21:00:13 +02:00
parent 47a73a4298
commit d0ded956cb
6 changed files with 26 additions and 24 deletions

View File

@@ -102,8 +102,7 @@ export class AuthService {
}
forgotPassword(email: string): Observable<unknown> {
const emailJson = JSON.stringify(email);
return this.http.post(`${this.appsettings.getApiURL()}/api/auth/forgot-password`, emailJson, {
return this.http.post(`${this.appsettings.getApiURL()}/api/auth/forgot-password/${email}`, {
headers: new HttpHeaders({
'Content-Type': 'application/json'
})
@@ -111,8 +110,7 @@ export class AuthService {
}
getEMailFromforgotPasswordId(id: string): Observable<EMailStringDTO> {
const idJson = JSON.stringify(id);
return this.http.post<EMailStringDTO>(`${this.appsettings.getApiURL()}/api/auth/confirm-forgot-password`, idJson, {
return this.http.post<EMailStringDTO>(`${this.appsettings.getApiURL()}/api/auth/confirm-forgot-password/${id}`, {
headers: new HttpHeaders({
'Content-Type': 'application/json'
})