mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-06-18 18:16:26 +00:00
chore: update comments, remove debug logging
This commit is contained in:
@ -60,22 +60,18 @@ module.exports = Mn.View.extend({
|
||||
expiry = v[1];
|
||||
}
|
||||
if (name === 'npm_oidc_error') {
|
||||
console.log(' ERROR 000 > ', value);
|
||||
error = decodeURIComponent(value);
|
||||
}
|
||||
}
|
||||
|
||||
console.log('login.js event > render', expiry, token);
|
||||
// register a newly acquired jwt token following successful oidc authentication
|
||||
if (token && expiry && (new Date(Date.parse(decodeURIComponent(expiry)))) > new Date() ) {
|
||||
console.log('login.js event > render >>>');
|
||||
Tokens.addToken(token);
|
||||
document.location.replace('/');
|
||||
}
|
||||
|
||||
// show error message following a failed oidc authentication
|
||||
if (error) {
|
||||
console.log(' ERROR > ', error);
|
||||
this.ui.oidcError.html(error);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user