1
0
mirror of https://github.com/Yubico/yubiadmin.git synced 2025-02-20 14:54:30 +01:00

Do not require TLD in URL field validation (fixes #4).

This commit is contained in:
Dain Nilsson 2014-03-04 15:37:38 +01:00
parent 70de2f37ff
commit 5c02e60afc
2 changed files with 3 additions and 3 deletions

View File

@ -230,7 +230,7 @@ class ValidationServerForm(ConfigForm):
client_id = IntegerField('Client ID', [NumberRange(0)]) client_id = IntegerField('Client ID', [NumberRange(0)])
client_secret = TextField('API key') client_secret = TextField('API key')
server_list = ListField( server_list = ListField(
'Validation Server URLs', [URL()], 'Validation Server URLs', [URL(require_tld=False)],
description=""" description="""
List of URLs to YubiKey validation servers. List of URLs to YubiKey validation servers.
Example: <code>http://example.com/wsapi/2.0/verify</code> Example: <code>http://example.com/wsapi/2.0/verify</code>

View File

@ -168,7 +168,7 @@ class SyncPoolForm(ConfigForm):
} }
sync_pool = ListField( sync_pool = ListField(
'Sync Pool URLs', [URL()], 'Sync Pool URLs', [URL(require_tld=False)],
description=""" description="""
List of URLs to other servers in the sync pool. List of URLs to other servers in the sync pool.
Example: <code>http://example.com/wsapi/2.0/sync</code> Example: <code>http://example.com/wsapi/2.0/sync</code>
@ -193,7 +193,7 @@ class KSMForm(ConfigForm):
attrs = {'ksm_urls': {'rows': 5, 'class': 'input-xxlarge'}} attrs = {'ksm_urls': {'rows': 5, 'class': 'input-xxlarge'}}
ksm_urls = ListField( ksm_urls = ListField(
'KSM URLs', [URL()], 'KSM URLs', [URL(require_tld=False)],
description=""" description="""
List of URLs to KSMs. List of URLs to KSMs.
The URLs must be fully qualified, i.e., contain the OTP itself. The URLs must be fully qualified, i.e., contain the OTP itself.