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

@@ -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