Ensure the avatar is always updated in all places

Fixes #549
This commit is contained in:
Johannes Zellner
2016-01-20 16:55:41 +01:00
parent 2cb498d500
commit 5112322e7d
5 changed files with 12 additions and 13 deletions

View File

@@ -86,6 +86,7 @@ angular.module('Application').service('Client', ['$http', 'md5', 'Notification',
this._clientId = '<%= oauth.clientId %>';
this._clientSecret = '<%= oauth.clientSecret %>';
this.apiOrigin = '<%= oauth.apiOrigin %>';
this.avatar = this.apiOrigin + '/api/v1/cloudron/avatar?' + String(Math.random()).slice(2);
this.setToken(localStorage.token);
}