mirror of
https://github.com/Ride-The-Lightning/RTL.git
synced 2026-08-13 12:33:07 +02:00
parent
fc9150f923
commit
408cfa1d31
4 changed files with 6 additions and 4 deletions
|
|
@ -395,7 +395,8 @@ export class CommonService {
|
|||
}
|
||||
});
|
||||
};
|
||||
this.readCookie = () => {
|
||||
this.readCookie = (config) => {
|
||||
this.appConfig.SSO = config.SSO;
|
||||
const exists = fs.existsSync(this.appConfig.SSO.rtlCookiePath);
|
||||
if (exists) {
|
||||
try {
|
||||
|
|
|
|||
|
|
@ -343,7 +343,7 @@ export class ConfigService {
|
|||
this.errMsg = 'Please set rtlCookiePath value for single sign on option!';
|
||||
}
|
||||
else {
|
||||
this.common.readCookie();
|
||||
this.common.readCookie(config);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -413,7 +413,8 @@ export class CommonService {
|
|||
});
|
||||
};
|
||||
|
||||
public readCookie = () => {
|
||||
public readCookie = (config) => {
|
||||
this.appConfig.SSO = config.SSO;
|
||||
const exists = fs.existsSync(this.appConfig.SSO.rtlCookiePath);
|
||||
if (exists) {
|
||||
try {
|
||||
|
|
|
|||
|
|
@ -321,7 +321,7 @@ export class ConfigService {
|
|||
if (!config.SSO.rtlCookiePath || config.SSO.rtlCookiePath.trim() === '') {
|
||||
this.errMsg = 'Please set rtlCookiePath value for single sign on option!';
|
||||
} else {
|
||||
this.common.readCookie();
|
||||
this.common.readCookie(config);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue