Skip to content

Commit

Permalink
Merge pull request #990 from roramirez/deprecation-warning
Browse files Browse the repository at this point in the history
Added deprecation warning for authentication of the calendar module.
  • Loading branch information
MichMich authored Aug 13, 2017
2 parents 1a7971e + 4bd36fc commit dcb4a31
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 3 additions & 1 deletion modules/default/calendar/calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dcb4a31

Please sign in to comment.