Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/jsxc.nextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus <klaus@jsxc.org>2022-01-04 14:18:51 +0300
committerGitHub <noreply@github.com>2022-01-04 14:18:51 +0300
commit0802a9e084e15b718261b9e47b375e96ab57b9ce (patch)
treea61b9918f25e8146507a9eaa3ea424a7e9ea3e8c
parent710c1bf1d7b72fa9bcdf8dad8b9d989cafc26668 (diff)
parent63d7e4c20f36a42e12c07e4c048f774b35d2426f (diff)
Merge pull request #169 from fangebee/fix-107-sso-autologin
Fix autologin with SAML/SSO and external XMPP server
-rw-r--r--ts/Bootstrap.ts12
1 files changed, 6 insertions, 6 deletions
diff --git a/ts/Bootstrap.ts b/ts/Bootstrap.ts
index 8b742d9..9f60244 100644
--- a/ts/Bootstrap.ts
+++ b/ts/Bootstrap.ts
@@ -136,15 +136,15 @@ export default class Bootstrap {
}
private async onUserRequestsToGoOnline() {
- if (!Storage.get().getItem('serverIsOmniscient') && OJSXC_CONFIG.serverType !== 'internal') {
- this.jsxc.showLoginBox();
-
- return;
- }
-
try {
let settings = await Settings.loadConnection(undefined, undefined);
+ if (!Storage.get().getItem('serverIsOmniscient') && OJSXC_CONFIG.serverType !== 'internal') {
+ this.jsxc.showLoginBox();
+
+ return;
+ }
+
if (!settings) {
throw new Error('No settings provided');
}