mirror of
https://github.com/UA-Fediland/synapse-admin.git
synced 2024-11-25 07:45:23 +00:00
Allow port in homeserver URL (#40)
Allow to use homeserver URL with port (e.g. ':443').
This commit is contained in:
parent
1002b6464a
commit
7f16f784f9
1 changed files with 3 additions and 1 deletions
|
@ -103,7 +103,9 @@ const LoginPage = ({ theme }) => {
|
||||||
} else {
|
} else {
|
||||||
if (!values.base_url.match(/^(http|https):\/\//)) {
|
if (!values.base_url.match(/^(http|https):\/\//)) {
|
||||||
errors.base_url = translate("synapseadmin.auth.protocol_error");
|
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");
|
errors.base_url = translate("synapseadmin.auth.url_error");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue