Added deprecation warning for authentication of the calendar module.

Discussed in Review
9848f80630 (r105531731)
This commit is contained in:
Rodrigo Ramírez Norambuena 2017-07-30 22:32:28 -04:00
parent bf24ee369f
commit 06af327e5e
2 changed files with 4 additions and 1 deletions

View File

@ -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 `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 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 `.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 ### Updated
- Changed 'default.js' - listen on all attached interfaces by default - Changed 'default.js' - listen on all attached interfaces by default

View File

@ -102,7 +102,9 @@ Module.register("calendar", {
}; };
// we check user and password here for backwards compatibility with old configs // 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 = { calendar.auth = {
user: calendar.user, user: calendar.user,
pass: calendar.pass pass: calendar.pass