SDA-4076 Add support for app restart while enabling browser authentication before defining pod URL at first time launch

This commit is contained in:
sbenmoussati 2023-03-07 20:31:13 +01:00
parent 0f0cd96b23
commit 79e3c3a209
2 changed files with 2 additions and 2 deletions

View File

@ -565,7 +565,7 @@ export class WindowHandler {
url: userConfigUrl,
message: '',
urlValid: !!userConfigUrl,
isPodConfigured: this.isPodConfigured,
isPodConfigured: this.isPodConfigured && !!userConfigUrl,
isSeamlessLoginEnabled: this.config.enableSeamlessLogin,
});
this.didShowWelcomeScreen = true;

View File

@ -151,7 +151,7 @@ export default class Welcome extends React.Component<{}, IState> {
const url = _event.target.value.trim();
const match =
url.match(
/(https?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)/g,
/^https:\/\/.(www\.)?[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)/g,
) != null;
if (url === 'https://[POD].symphony.com' || !match) {
this.updateState(_event, {