今天我将 Windows 更改为 windows10 x64,但令人惊讶的是,当我打开 gitlab(我的意思是 gitlab.com)并尝试登录我的帐户时,我面临
422
The change you requested was rejected.
Make sure you have access to the thing you tried to change.
Please contact your GitLab administrator if you think this is a mistake.
我只是想登录,仅此而已!该问题与我的帐户无关,因为我已经尝试了很多帐户。这是关于什么的? (我正在使用代理,但代理不应该是原因,因为我使用它已经很长时间了,并且我尝试了不同的代理。此外,我使用确切的代理登录了 Windows 应用程序上的 git lab 并轻松克隆了我的项目.)
最佳答案
可以解释该错误消息的一种情况:
- GitLab 提供 2FA (Two-Factor Authentication ) ,系统会提示您输入由一次性密码验证器生成的代码。
- 这取决于 NTP (Network Time Protocol) ,如documented here .
- GitLab issue 52133说明 NTP 错误配置可能会导致 422 错误消息。
所以请仔细检查您的 NTP settings on Windows 10 .
请注意,GitLab 15.10 (2023 年 3 月)(仅限自托管)
Duo supported as a 2FA method
Duo time-based one-time password (TOTP) is now supported as a two-factor authentication (2FA) method when signing into GitLab.
Thank you Jamie Murphy for your contribution!
See Documentation and Issue.
And this video.
关于git - 无法登录gitlab,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53978753/