diff --git a/app/app/router.js b/app/app/router.js index b6db841b..0f8354c8 100644 --- a/app/app/router.js +++ b/app/app/router.js @@ -67,6 +67,10 @@ export default Router.map(function () { path: 'setup' }); + this.route('secure', { + path: 'secure/:token' + }); + this.route('auth', { path: 'auth' }, function () { diff --git a/app/app/services/app-meta.js b/app/app/services/app-meta.js index 52c2c8ab..f8f797a7 100644 --- a/app/app/services/app-meta.js +++ b/app/app/services/app-meta.js @@ -62,9 +62,20 @@ export default Ember.Service.extend({ return resolve(this); } + if (requestedUrl === 'secure') { + this.setProperties({ + title: htmlSafe("Secure document viewing"), + allowAnonymousAccess: true, + setupMode: true + }); + + this.get('localStorage').clearAll(); + + return resolve(this); + } + return this.get('ajax').request('public/meta').then((response) => { this.setProperties(response); - return response; }); }