mirror of
https://github.com/Yubico/yubiadmin.git
synced 2024-11-29 01:24:12 +01:00
Do not require TLD in URL field validation (fixes #4).
This commit is contained in:
parent
70de2f37ff
commit
5c02e60afc
@ -230,7 +230,7 @@ class ValidationServerForm(ConfigForm):
|
||||
client_id = IntegerField('Client ID', [NumberRange(0)])
|
||||
client_secret = TextField('API key')
|
||||
server_list = ListField(
|
||||
'Validation Server URLs', [URL()],
|
||||
'Validation Server URLs', [URL(require_tld=False)],
|
||||
description="""
|
||||
List of URLs to YubiKey validation servers.
|
||||
Example: <code>http://example.com/wsapi/2.0/verify</code>
|
||||
|
@ -168,7 +168,7 @@ class SyncPoolForm(ConfigForm):
|
||||
}
|
||||
|
||||
sync_pool = ListField(
|
||||
'Sync Pool URLs', [URL()],
|
||||
'Sync Pool URLs', [URL(require_tld=False)],
|
||||
description="""
|
||||
List of URLs to other servers in the sync pool.
|
||||
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'}}
|
||||
|
||||
ksm_urls = ListField(
|
||||
'KSM URLs', [URL()],
|
||||
'KSM URLs', [URL(require_tld=False)],
|
||||
description="""
|
||||
List of URLs to KSMs.
|
||||
The URLs must be fully qualified, i.e., contain the OTP itself.
|
||||
|
Loading…
Reference in New Issue
Block a user