From 63d102296f64c0307313dc09a21b759d2b7d216c Mon Sep 17 00:00:00 2001 From: garrettmills Date: Mon, 19 Oct 2020 09:55:26 -0500 Subject: [PATCH] Fix bad logging method call names --- app/controllers/OpenID.controller.js | 12 ++++++------ app/controllers/auth/Oauth2.controller.js | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/app/controllers/OpenID.controller.js b/app/controllers/OpenID.controller.js index 8c4864e..fb2110b 100644 --- a/app/controllers/OpenID.controller.js +++ b/app/controllers/OpenID.controller.js @@ -140,13 +140,13 @@ class OpenIDController extends Controller { const Policy = this.models.get('iam:Policy') const application = await Application.findOne({ openid_client_ids: params.client_id }) if ( !application ) { - this.output.warning('IAM Denial!') + this.output.warn('IAM Denial!') return this.Vue.auth_message(res, { message: req.T('saml.no_access').replace('APP_NAME', 'this application'), next_destination: '/dash', }) } else if ( !(await Policy.check_user_access(req.user, application.id)) ) { - this.output.warning('IAM Denial!') + this.output.warn('IAM Denial!') return this.Vue.auth_message(res, { message: req.T('saml.no_access').replace('APP_NAME', application.name), next_destination: '/dash', @@ -200,13 +200,13 @@ class OpenIDController extends Controller { const Policy = this.models.get('iam:Policy') const application = await Application.findOne({ openid_client_ids: params.client_id }) if ( !application ) { - this.output.warning('IAM Denial!') + this.output.warn('IAM Denial!') return this.Vue.auth_message(res, { message: req.T('saml.no_access').replace('APP_NAME', 'this application'), next_destination: '/dash', }) } else if ( !(await Policy.check_user_access(req.user, application.id)) ) { - this.output.warning('IAM Denial!') + this.output.warn('IAM Denial!') return this.Vue.auth_message(res, { message: req.T('saml.no_access').replace('APP_NAME', application.name), next_destination: '/dash', @@ -236,13 +236,13 @@ class OpenIDController extends Controller { const Policy = this.models.get('iam:Policy') const application = await Application.findOne({ openid_client_ids: params.client_id }) if ( !application ) { - this.output.warning('IAM Denial!') + this.output.warn('IAM Denial!') return this.Vue.auth_message(res, { message: req.T('saml.no_access').replace('APP_NAME', 'this application'), next_destination: '/dash', }) } else if ( !(await Policy.check_user_access(req.user, application.id)) ) { - this.output.warning('IAM Denial!') + this.output.warn('IAM Denial!') return this.Vue.auth_message(res, { message: req.T('saml.no_access').replace('APP_NAME', application.name), next_destination: '/dash', diff --git a/app/controllers/auth/Oauth2.controller.js b/app/controllers/auth/Oauth2.controller.js index 87ec62c..0790af6 100644 --- a/app/controllers/auth/Oauth2.controller.js +++ b/app/controllers/auth/Oauth2.controller.js @@ -23,13 +23,13 @@ class Oauth2 extends Oauth2Controller { const Policy = this.models.get('iam:Policy') const application = await Application.findOne({ oauth_client_ids: starship_client.id }) if ( !application ) { - this.output.warning('IAM Denial!') + this.output.warn('IAM Denial!') return this.Vue.auth_message(res, { message: req.T('saml.no_access').replace('APP_NAME', application.name), next_destination: '/dash', }) } else if ( !(await Policy.check_user_access(req.user, application.id)) ) { - this.output.warning('IAM Denial!') + this.output.warn('IAM Denial!') return this.Vue.auth_message(res, { message: req.T('saml.no_access').replace('APP_NAME', application.name), next_destination: '/dash', @@ -54,13 +54,13 @@ class Oauth2 extends Oauth2Controller { const Policy = this.models.get('iam:Policy') const application = await Application.findOne({ oauth_client_ids: starship_client.id }) if ( !application ) { - this.output.warning('IAM Denial!') + this.output.warn('IAM Denial!') return this.Vue.auth_message(res, { message: req.T('saml.no_access').replace('APP_NAME', application.name), next_destination: '/dash', }) } else if ( !(await Policy.check_user_access(req.user, application.id)) ) { - this.output.warning('IAM Denial!') + this.output.warn('IAM Denial!') return this.Vue.auth_message(res, { message: req.T('saml.no_access').replace('APP_NAME', application.name), next_destination: '/dash',