mirror of
https://github.com/Awesome-Technologies/synapse-admin.git
synced 2024-10-31 06:55:15 +03:00
Fix SSO-login for base urls with explicit port (#337)
This commit is contained in:
parent
ec2e7b2ccb
commit
ad9a1c502b
1 changed files with 3 additions and 1 deletions
|
@ -217,7 +217,9 @@ const LoginPage = ({ theme }) => {
|
|||
_ => {
|
||||
if (
|
||||
!formData.base_url ||
|
||||
!formData.base_url.match(/^(http|https):\/\/[a-zA-Z0-9\-.]+$/)
|
||||
!formData.base_url.match(
|
||||
/^(http|https):\/\/[a-zA-Z0-9\-.]+(:\d{1,5})?$/
|
||||
)
|
||||
)
|
||||
return;
|
||||
const versionUrl = `${formData.base_url}/_synapse/admin/v1/server_version`;
|
||||
|
|
Loading…
Reference in a new issue