提交 e619d0b6 编写于 作者: S Stan Hu

When reCAPTCHA is disabled, allow registrations to go through without a code

上级 a3469d91
......@@ -7,7 +7,7 @@ class RegistrationsController < Devise::RegistrationsController
end
def create
if Gitlab::Recaptcha.load_configurations! && verify_recaptcha
if !Gitlab::Recaptcha.load_configurations! || verify_recaptcha
super
else
flash[:alert] = "There was an error with the reCAPTCHA code below. Please re-enter the code."
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册