mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-29 02:11:28 -06:00
Merge pull request #1751 from sbenmoussati/bugfix/SDA-4076
SDA-4076 Add support for app restart while enabling browser authentication before defining pod URL at first time launch
This commit is contained in:
commit
1dab2992dc
@ -565,7 +565,7 @@ export class WindowHandler {
|
|||||||
url: userConfigUrl,
|
url: userConfigUrl,
|
||||||
message: '',
|
message: '',
|
||||||
urlValid: !!userConfigUrl,
|
urlValid: !!userConfigUrl,
|
||||||
isPodConfigured: this.isPodConfigured,
|
isPodConfigured: this.isPodConfigured && !!userConfigUrl,
|
||||||
isSeamlessLoginEnabled: this.config.enableSeamlessLogin,
|
isSeamlessLoginEnabled: this.config.enableSeamlessLogin,
|
||||||
});
|
});
|
||||||
this.didShowWelcomeScreen = true;
|
this.didShowWelcomeScreen = true;
|
||||||
|
@ -151,7 +151,7 @@ export default class Welcome extends React.Component<{}, IState> {
|
|||||||
const url = _event.target.value.trim();
|
const url = _event.target.value.trim();
|
||||||
const match =
|
const match =
|
||||||
url.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;
|
) != null;
|
||||||
if (url === 'https://[POD].symphony.com' || !match) {
|
if (url === 'https://[POD].symphony.com' || !match) {
|
||||||
this.updateState(_event, {
|
this.updateState(_event, {
|
||||||
|
Loading…
Reference in New Issue
Block a user