-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathconfig.py
More file actions
32 lines (29 loc) · 899 Bytes
/
config.py
File metadata and controls
32 lines (29 loc) · 899 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/python
# web portal related configuration
web = {
# listen on this port
"port": 8000,
}
# otp verification related configuration
otp = {
# the username of the user to test the OTP against
"username": "hotspot",
# the password of the user
"password": "password",
# the name of the pam service to be used for verifying the authentication
"pam_service": "otpspot",
# if true the OTP is verified, if false any OTP will be accepted
"enabled": True,
}
# HTML template locale
language = {
'title': 'Wireless Guest Login',
'welcome_message': 'Please provide the code provided by the host below',
'otp_placeholder': 'Access Code',
'register_button': 'Register',
'registering_message': 'Registering...',
'registered_successfully': 'Registered',
'error_banner': 'ERROR',
'error_invalid_parameter': 'Missing required parameter',
'error_invalid_otp': 'Invalid code provided',
}