|
|
|
@@ -16,13 +16,15 @@ export class AuthService { |
|
|
|
} |
|
|
|
|
|
|
|
forgotPassword(email: string) { |
|
|
|
return this.http.post(URL + '/api/auth/forgot/', { email: email }).toPromise(); |
|
|
|
return this.http.post(URL + '/forgot', { email: email }).toPromise(); |
|
|
|
} |
|
|
|
|
|
|
|
validateOtpForEmail(data: { email: string, otp: number | string }) { |
|
|
|
return this.http.post(URL + '/api/otp/validate', data).toPromise(); |
|
|
|
} |
|
|
|
|
|
|
|
// POST/api/auth/otpvalidate For Forgot password |
|
|
|
|
|
|
|
requestMailOTP(email: string) { |
|
|
|
return this.http.post(URL + '/api/otp/generate/', { email: email }).toPromise(); |
|
|
|
} |
|
|
|
|