mirror of
https://git.linux-kernel.at/oliver/ivatar.git
synced 2025-11-14 04:04:03 +00:00
Add functionality to check OpenID/mail; Size already works, default URL not (yet)
This commit is contained in:
10
config.py
10
config.py
@@ -55,6 +55,9 @@ OPENID_UPDATE_DETAILS_FROM_SREG = True
|
||||
SITE_NAME = 'ivatar'
|
||||
IVATAR_VERSION = '0.1'
|
||||
|
||||
SECURE_BASE_URL = 'https://avatars.linux-kernel.at/avatar/'
|
||||
BASE_URL = 'http://avatars.linux-kernel.at/avatar/'
|
||||
|
||||
LOGIN_REDIRECT_URL = reverse_lazy('profile')
|
||||
MAX_LENGTH_EMAIL = 254 # http://stackoverflow.com/questions/386294
|
||||
SERVER_EMAIL = 'accounts@mg.linux-kernel.at'
|
||||
@@ -66,6 +69,13 @@ MAX_PIXELS = 7000
|
||||
AVATAR_MAX_SIZE = 512
|
||||
JPEG_QUALITY = 85
|
||||
|
||||
# I'm not 100% sure if single character domains are possible
|
||||
# under any tld... so MIN_LENGTH_EMAIL/_URL, might be +1
|
||||
MIN_LENGTH_URL = 11 # eg. http://a.io
|
||||
MAX_LENGTH_URL = 255 # MySQL can't handle more than that (LP: 1018682)
|
||||
MIN_LENGTH_EMAIL = 6 # eg. x@x.xx
|
||||
MAX_LENGTH_EMAIL = 254 # http://stackoverflow.com/questions/386294
|
||||
|
||||
BOOTSTRAP4 = {
|
||||
'include_jquery': False,
|
||||
'javascript_in_head': False,
|
||||
|
||||
Reference in New Issue
Block a user