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

Remove double screen blink after logout

This commit is contained in:
McMatts 2019-05-14 14:52:36 +01:00
parent 8ecbb9cdee
commit e2a3962092
4 changed files with 6 additions and 4 deletions

View file

@ -25,7 +25,7 @@ export default Route.extend(ApplicationRouteMixin, {
let sa = this.get('session.session.authenticator');
return this.get('appMeta').boot(transition.targetName, window.location.href).then(data => {
return this.get('appMeta').boot(transition.targetName, '').then(data => {
if (sa !== "authenticator:documize" && sa !== "authenticator:keycloak" && sa !== "authenticator:ldap" && data.allowAnonymousAccess) {
if (!this.get('appMeta.setupMode') && !this.get('appMeta.secureMode')) {
return this.get('session').authenticate('authenticator:anonymous', data);
@ -46,7 +46,7 @@ export default Route.extend(ApplicationRouteMixin, {
this.get('localStorage').clearSessionItem('entryUrl')
if (!_.includes(next, '/auth/')) {
window.location.href= next;
// window.location.href= next;
}
}
},