mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 05:19:39 +02:00
fix(login) hide password in console EE-5279 (#8774)
This commit is contained in:
parent
ae339a0047
commit
0f9a0e25f2
1 changed files with 4 additions and 2 deletions
|
@ -47,8 +47,10 @@ export function notifyError(title: string, e?: Error, fallbackText = '') {
|
|||
const msg = pickErrorMsg(e) || fallbackText;
|
||||
saveNotification(title, msg, 'error');
|
||||
|
||||
// eslint-disable-next-line no-console
|
||||
console.error(e);
|
||||
if (!_.get(e, 'resource.password')) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.error(e);
|
||||
}
|
||||
|
||||
if (msg !== 'Invalid JWT token') {
|
||||
toastr.error(sanitize(_.escape(msg)), sanitize(title), { timeOut: 6000 });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue