Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/xpath/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angular/30.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
自托管Gitlab无效的reCaptcha密钥类型_Gitlab_Recaptcha - Fatal编程技术网

自托管Gitlab无效的reCaptcha密钥类型

自托管Gitlab无效的reCaptcha密钥类型,gitlab,recaptcha,Gitlab,Recaptcha,我是Gitlab的自宿主,并在登录/注册时添加了force reCaptcha 我无意中输入了v3密钥而不是v2密钥,现在无法登录,因为它显示: ERROR for site owner: Invalid key type. 知道如何在文件中手动更改它吗? 我正在运行UbuntuDesktop 18.04.4如果您可以连接到GItLab服务器,您可以,如中所述 在管理设置()中禁用reCAPTCHA 禁用后,您至少可以登录,这次输入另一种可能性,我使用了: 如果您能够通过先前生成(并保存)的

我是Gitlab的自宿主,并在登录/注册时添加了force reCaptcha

我无意中输入了v3密钥而不是v2密钥,现在无法登录,因为它显示:

ERROR for site owner: Invalid key type. 
知道如何在文件中手动更改它吗?

我正在运行UbuntuDesktop 18.04.4

如果您可以连接到GItLab服务器,您可以,如中所述

在管理设置()中禁用reCAPTCHA


禁用后,您至少可以登录,这次输入另一种可能性,我使用了:

如果您能够通过先前生成(并保存)的GitLab
ReST API
-
个人访问令牌
(使用
所有作用域
/
完全管理
权限创建)获得访问权限,则您可以使用该令牌通过以下CLI命令更新
reCAPTCHA
密钥:

user$ curl --request PUT --header \
       "PRIVATE-TOKEN: <PersonalAccessToken>" \
       "https://gitlab.example.com/api/v4/application/settings?recaptcha_private_key=<SecretKey>&recaptcha_site_key=<SiteKey>"
user$curl--request PUT--header\
“专用令牌:”\
"https://gitlab.example.com/api/v4/application/settings?recaptcha_private_key=&recaptcha_site_key="
我希望这能帮助别人