0
votes

I wanted to generate a reset password link to send to the user's email that will open the ResetPassword page. On this page I will fill in the details regarding the new password and then confirm the password.

Any how this is done?

1

1 Answers

1
votes

You can download sample from ASP.NET Identity for Password recovery/reset.

Write API with email input and send to email an reset link base on sample.

https://docs.microsoft.com/en-us/aspnet/identity/overview/features-api/account-confirmation-and-password-recovery-with-aspnet-identity

After that you create a service in angular to call web api with email input.

@Injectable()
export class UserService {
constructor(private http: HttpClient) {
}
resetpassword(email: string){
    return this.http.get('/api/user/resetpassword?email=' + email)
      .map(response => {
        // handle logic here
  });
  }
}