mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-12-19 22:03:26 +00:00
refactor: satisfy linter requirements
This commit is contained in:
@@ -71,14 +71,14 @@ router
|
||||
.then((row) => {
|
||||
if (row.id === 'oidc-config') {
|
||||
// redact oidc configuration via api
|
||||
let m = row.meta
|
||||
let m = row.meta;
|
||||
row.meta = {
|
||||
name: m.name,
|
||||
name: m.name,
|
||||
enabled: m.enabled === true && !!(m.clientID && m.clientSecret && m.issuerURL && m.redirectURL && m.name)
|
||||
};
|
||||
// remove these temporary cookies used during oidc authentication
|
||||
res.clearCookie('npm_oidc')
|
||||
res.clearCookie('npm_oidc_error')
|
||||
res.clearCookie('npm_oidc');
|
||||
res.clearCookie('npm_oidc_error');
|
||||
}
|
||||
res.status(200)
|
||||
.send(row);
|
||||
|
||||
Reference in New Issue
Block a user