fixed typo in auth
This commit is contained in:
@@ -35,7 +35,7 @@ else:
|
|||||||
response.generic_patterns = ['*'] if request.is_local else []
|
response.generic_patterns = ['*'] if request.is_local else []
|
||||||
## choose a style for forms
|
## choose a style for forms
|
||||||
response.formstyle = myconf.get('forms.formstyle') # or 'bootstrap3_stacked' or 'bootstrap2' or other
|
response.formstyle = myconf.get('forms.formstyle') # or 'bootstrap3_stacked' or 'bootstrap2' or other
|
||||||
response.form_label_separator = myconf.get('forms.separator')
|
response.form_label_separator = myconf.get('forms.separator') or ''
|
||||||
|
|
||||||
|
|
||||||
## (optional) optimize handling of static files
|
## (optional) optimize handling of static files
|
||||||
@@ -67,8 +67,8 @@ mail = auth.settings.mailer
|
|||||||
mail.settings.server = 'logging' if request.is_local else myconf.get('smtp.server')
|
mail.settings.server = 'logging' if request.is_local else myconf.get('smtp.server')
|
||||||
mail.settings.sender = myconf.get('smtp.sender')
|
mail.settings.sender = myconf.get('smtp.sender')
|
||||||
mail.settings.login = myconf.get('smtp.login')
|
mail.settings.login = myconf.get('smtp.login')
|
||||||
mail.settings.tls = myconf.get('smtp.tls')
|
mail.settings.tls = myconf.get('smtp.tls') or False
|
||||||
mail.settings.ssl = myconf.get('smtp.ssl')
|
mail.settings.ssl = myconf.get('smtp.ssl') or False
|
||||||
|
|
||||||
## configure auth policy
|
## configure auth policy
|
||||||
auth.settings.registration_requires_verification = False
|
auth.settings.registration_requires_verification = False
|
||||||
|
|||||||
+1
-1
@@ -1765,7 +1765,7 @@ class Auth(object):
|
|||||||
|
|
||||||
settings = self.settings = Settings()
|
settings = self.settings = Settings()
|
||||||
settings.update(Auth.default_settings)
|
settings.update(Auth.default_settings)
|
||||||
host = host or request.env.http_host,
|
host = host or request.env.http_host
|
||||||
settings.update(
|
settings.update(
|
||||||
cas_domains=[host],
|
cas_domains=[host],
|
||||||
enable_tokens=False,
|
enable_tokens=False,
|
||||||
|
|||||||
Reference in New Issue
Block a user