Fixes: U4-2974 Authentication fail displays username and password
This commit is contained in:
@@ -22,9 +22,15 @@ angular.module('umbraco.security.interceptor', ['umbraco.security.retryQueue'])
|
||||
//http://issues.umbraco.org/issue/U4-2749
|
||||
|
||||
//It was decided to just put these messages into the normal status messages.
|
||||
|
||||
var msg = "Unauthorized access to URL: <br/><i>" + originalResponse.config.url.split('?')[0] + "</i>";
|
||||
if (originalResponse.config.data) {
|
||||
msg += "<br/> with data: <br/><i>" + angular.toJson(originalResponse.config.data) + "</i><br/>Contact your administrator for information.";
|
||||
}
|
||||
|
||||
notifications.error(
|
||||
"Authorization error",
|
||||
"Unauthorized access to URL: <br/><i>" + originalResponse.config.url + "</i><br/> with data: <br/><i>" + angular.toJson(originalResponse.config.data) + "</i><br/>Contact your administrator for information.");
|
||||
msg);
|
||||
}
|
||||
return promise;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user