Fix SSO-login for base urls with explicit port

This commit is contained in:
smoehrle
2023-02-11 20:49:55 +01:00
parent 9b43d41040
commit dfb3ed879f
+3 -1
View File
@@ -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`;