Base solution for your next web application
Open Closed

Send password reset link: Controller returns JSON #6043


User avatar
0
holoncom created

Hello,

After following the forgot password? link and submitting an email address, the controller action returns JSON instead of a View. Causing the browser to print the json. Instead, I would expect some kind of confirmation view or at least a redirect to login.

What is the reason for this?

Regards


2 Answer(s)
  • User Avatar
    0
    ryancyq created
    Support Team

    Hi, are you using Angular or Jquery? also, what version of ANZ you are using?

  • User Avatar
    0
    ryancyq created
    Support Team

    If you are using Jquery version, JSON response is handled in the js.

    See https://github.com/aspnetzero/aspnet-zero-core/blob/574ce89a4fc991938bcc47c63b2ba121bedd19a8/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Web.Mvc/wwwroot/view-resources/Views/Account/ForgotPassword.js#L18-L38