1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-24 07:39:43 +02:00

community/enterprise edition sync

This commit is contained in:
Harvey Kandola 2017-03-22 12:21:18 +00:00
parent fa0f176613
commit 4f277c8500
2 changed files with 16 additions and 1 deletions

View file

@ -67,6 +67,10 @@ export default Router.map(function () {
path: 'setup'
});
this.route('secure', {
path: 'secure/:token'
});
this.route('auth', {
path: 'auth'
}, function () {

View file

@ -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;
});
}