Merge branch 'master' of github.com:web2py/web2py
This commit is contained in:
@@ -335,7 +335,7 @@
|
||||
} else {
|
||||
formData = form.serialize(); // Fallback for older browsers.
|
||||
}
|
||||
web2py.ajax_page('post', url, formData, target, form);
|
||||
web2py.ajax_page('post', url, formData, target);
|
||||
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
@@ -30,7 +30,7 @@ else:
|
||||
from io import StringIO
|
||||
import random
|
||||
import json
|
||||
|
||||
from gluon._compat import basestring
|
||||
|
||||
class JSONRPCError(RuntimeError):
|
||||
"Error object for remote procedure call fail"
|
||||
|
||||
@@ -3171,12 +3171,12 @@ class Auth(AuthAPI):
|
||||
formname='retrieve_password', dbio=False,
|
||||
onvalidation=onvalidation, hideerror=self.settings.hideerror):
|
||||
user = table_user(email=form.vars.email)
|
||||
key = user.registration_key
|
||||
if not user:
|
||||
current.session.flash = \
|
||||
self.messages.invalid_email
|
||||
redirect(self.url(args=request.args))
|
||||
elif key in ('pending', 'disabled', 'blocked') or (key or '').startswith('pending'):
|
||||
key = user.registration_key
|
||||
if key in ('pending', 'disabled', 'blocked') or (key or '').startswith('pending'):
|
||||
current.session.flash = \
|
||||
self.messages.registration_pending
|
||||
redirect(self.url(args=request.args))
|
||||
|
||||
Reference in New Issue
Block a user