Merge pull request #990 from roramirez/deprecation-warning

Added deprecation warning for authentication of the calendar module.
This commit is contained in:
Michael Teeuw 2017-08-13 19:21:17 +02:00 committed by GitHub
commit dcb4a315a6
2 changed files with 4 additions and 1 deletions

View File

@ -17,6 +17,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
- Add unit test for js/class.js.
- Add unit tests for function `roundValue` in currentweather module.
- Add test e2e showWeek feature in spanish language.
- Add warning Log when is used old authentication method in the calendar module.
### Updated
- Changed 'default.js' - listen on all attached interfaces by default.

View File

@ -79,7 +79,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