mirror of
https://github.com/AxioDL/axiodl-www.git
synced 2026-07-11 06:19:06 -07:00
Fix LoginView
This commit is contained in:
+1
-2
@@ -52,8 +52,7 @@ class UserLoginView(LoginView):
|
||||
|
||||
def form_valid(self, form):
|
||||
if self.request.recaptcha_is_valid:
|
||||
form.save()
|
||||
return redirect(self.get_success_url())
|
||||
return super(UserLoginView, self).form_valid(form)
|
||||
|
||||
return render(self.request, self.template_name, self.get_context_data())
|
||||
|
||||
|
||||
@@ -15,5 +15,5 @@ def is_site_locked():
|
||||
return configuration.locked
|
||||
|
||||
|
||||
GOOGLE_RECAPTCHA_SITE_KEY='6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI' # Google Test key - Replace immediately with your key
|
||||
GOOGLE_RECAPTCHA_SECRET_KEY='6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe' # Google Test key - Replace immediately with your key
|
||||
GOOGLE_RECAPTCHA_SECRET_KEY='6LcBPK4UAAAAAF3-YpH5E1W8j48U3OCPgLuRaXME'
|
||||
GOOGLE_RECAPTCHA_SITE_KEY='6LcBPK4UAAAAAKs13opqkNGd0x11HAxDdIZmyK5P'
|
||||
|
||||
Reference in New Issue
Block a user