Allow port in homeserver URL (#40)

Allow to use homeserver URL with port (e.g. ':443').
pull/41/head
Dirk Klimpel 4 years ago committed by GitHub
parent 1002b6464a
commit 7f16f784f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -103,7 +103,9 @@ const LoginPage = ({ theme }) => {
} else {
if (!values.base_url.match(/^(http|https):\/\//)) {
errors.base_url = translate("synapseadmin.auth.protocol_error");
} else if (!values.base_url.match(/^(http|https):\/\/[a-zA-Z0-9\-.]+$/)) {
} else if (
!values.base_url.match(/^(http|https):\/\/[a-zA-Z0-9\-.]+(:\d{1,5})?$/)
) {
errors.base_url = translate("synapseadmin.auth.url_error");
}
}

Loading…
Cancel
Save