1
0
mirror of https://github.com/sasjs/adapter.git synced 2025-12-11 01:14:36 +00:00

Merge pull request #48 from sasjs/issue47

fix: login not working on non english browsers
This commit is contained in:
Allan Bowe
2020-08-23 18:24:36 +02:00
committed by GitHub

View File

@@ -291,7 +291,7 @@ export default class SASjs {
public async checkSession() {
const loginResponse = await fetch(this.loginUrl.replace(".do", ""));
const responseText = await loginResponse.text();
const isLoggedIn = /You have signed in./gm.test(responseText);
const isLoggedIn = /<button.+onClick.+logout/gm.test(responseText);
return Promise.resolve({
isLoggedIn,