forgot-password.service.ts 587 B

1234567891011121314151617181920
  1. import { Injectable, Inject } from '@angular/core';
  2. import { _HttpClient, User } from '@delon/theme';
  3. @Injectable({
  4. providedIn: 'root'
  5. })
  6. export class ForgotPasswordService {
  7. constructor(private http: _HttpClient) { }
  8. produceOtp(param: any) {
  9. return this.http.get('/forgotpassword/produceOtp?_allow_anonymous=true', param);
  10. }
  11. produceEmailOtp(param: any) {
  12. return this.http.get(`/forgotpassword/produceEmailOtp?_allow_anonymous=true`, param);
  13. }
  14. setPassWord(param: any) {
  15. return this.http.get('/forgotpassword/setpassword?_allow_anonymous=true', param);
  16. }
  17. }