Merge ssh://github.com/web2py/web2py
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.6.0-development+timestamp.2013.07.22.14.51.29
|
Version 2.6.0-development+timestamp.2013.07.23.02.04.35
|
||||||
|
|||||||
+6
-1
@@ -2046,7 +2046,12 @@ class Auth(object):
|
|||||||
### pass
|
### pass
|
||||||
|
|
||||||
if next is DEFAULT:
|
if next is DEFAULT:
|
||||||
next = self.next or self.settings.login_next
|
# important for security
|
||||||
|
next = self.settings.login_next
|
||||||
|
if self.next:
|
||||||
|
host = self.next.split('//',1)[-1].split('/')[0]
|
||||||
|
if host in self.settings.cas_domains:
|
||||||
|
next = self.next
|
||||||
if onvalidation is DEFAULT:
|
if onvalidation is DEFAULT:
|
||||||
onvalidation = self.settings.login_onvalidation
|
onvalidation = self.settings.login_onvalidation
|
||||||
if onaccept is DEFAULT:
|
if onaccept is DEFAULT:
|
||||||
|
|||||||
+1
-3
@@ -351,14 +351,12 @@ class IS_JSON(Validator):
|
|||||||
self.error_message = error_message
|
self.error_message = error_message
|
||||||
|
|
||||||
def __call__(self, value):
|
def __call__(self, value):
|
||||||
if value is None:
|
|
||||||
return None
|
|
||||||
try:
|
try:
|
||||||
if self.native_json:
|
if self.native_json:
|
||||||
simplejson.loads(value) # raises error in case of malformed json
|
simplejson.loads(value) # raises error in case of malformed json
|
||||||
return (value, None) # the serialized value is not passed
|
return (value, None) # the serialized value is not passed
|
||||||
return (simplejson.loads(value), None)
|
return (simplejson.loads(value), None)
|
||||||
except JSONErrors, e:
|
except JSONErrors:
|
||||||
return (value, translate(self.error_message))
|
return (value, translate(self.error_message))
|
||||||
|
|
||||||
def formatter(self,value):
|
def formatter(self,value):
|
||||||
|
|||||||
Reference in New Issue
Block a user