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

fix lost auth token issue when refresh page

This commit is contained in:
Derek Chen 2019-08-13 22:10:08 +08:00
parent 8c2df6178d
commit 041091504f

View file

@ -26,7 +26,7 @@ export default Route.extend(ApplicationRouteMixin, {
let sa = this.get('session.session.authenticator'); let sa = this.get('session.session.authenticator');
return this.get('appMeta').boot(transition.targetName, '').then(data => { return this.get('appMeta').boot(transition.targetName, '').then(data => {
if (sa !== "authenticator:documize" && sa !== "authenticator:keycloak" && sa !== "authenticator:ldap" && data.allowAnonymousAccess) { if (sa !== "authenticator:documize" && sa !== "authenticator:keycloak" && sa !== "authenticator:ldap" && sa != "authenticator:cas" && data.allowAnonymousAccess) {
if (!this.get('appMeta.setupMode') && !this.get('appMeta.secureMode')) { if (!this.get('appMeta.setupMode') && !this.get('appMeta.secureMode')) {
return this.get('session').authenticate('authenticator:anonymous', data); return this.get('session').authenticate('authenticator:anonymous', data);
} }