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:
parent
8ecbb9cdee
commit
e2a3962092
4 changed files with 6 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue