From 06af327e5e693c200e459525425b24cf23afb996 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Ram=C3=ADrez=20Norambuena?= Date: Sun, 30 Jul 2017 22:32:28 -0400 Subject: [PATCH] Added deprecation warning for authentication of the calendar module. Discussed in Review https://github.com/MichMich/MagicMirror/pull/754/files/9848f8063047854e35a6bc7a27302428e22c51ab#r105531731 --- CHANGELOG.md | 1 + modules/default/calendar/calendar.js | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 90bae37b..ef24a46e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ This project adheres to [Semantic Versioning](http://semver.org/). - Add `clientonly` script to start only the electron client for a remote server. - Add symbol and color properties of event when `CALENDAR_EVENTS` notification is broadcasted from `default/calendar` module. - Add `.vscode/` folder to `.gitignore` to keep custom Visual Studio Code config out of git +- Add warning Log when is used old authentication method in the calendar module. ### Updated - Changed 'default.js' - listen on all attached interfaces by default diff --git a/modules/default/calendar/calendar.js b/modules/default/calendar/calendar.js index a5716d77..32b944b0 100644 --- a/modules/default/calendar/calendar.js +++ b/modules/default/calendar/calendar.js @@ -102,7 +102,9 @@ Module.register("calendar", { }; // we check user and password here for backwards compatibility with old configs - if(calendar.user && calendar.pass){ + if(calendar.user && calendar.pass) { + Log.warn("Deprecation warning: Please update your calendar authentication configuration."); + Log.warn("https://github.com/MichMich/MagicMirror/tree/v2.1.2/modules/default/calendar#calendar-authentication-options"); calendar.auth = { user: calendar.user, pass: calendar.pass