0
lminmei created
Is it possible to turn off the "UserFriendlyExceptions" on login errors? I want to be able to use Angular to process these errors on the login.js page
Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)
3 Answer(s)
-
0
You can override abp.ng.http.showError in javascript like that:
abp.ng.http.showError = function(error) { //Show error or do another thing... }Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
which js file would I place that code at? when there is a login error (which is handled by the ASP.NET AccountController.cs), the AccountController will throw the new UserFriendlyException("login error") and which a js alert is activated before the error event handler in the login.js file. so i'm not sure where to put that block of code to override the default abp error handler.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
Hi,
You can add the code after including abp.ng.js script to your page. Just create a new script file and write it there.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)