GitLab帐户更改用户名时被封锁。我如何解开?

发布于 2025-01-18 16:27:22 字数 264 浏览 3 评论 0 原文

我想更改Gitlab上的用户名,因此我遵循以下过程:

  1. 导航到您的个人资料的设置>帐户。
  2. 输入一个新的用户名更改用户名。
  3. 单击“更新用户名”。

单击更新后,似乎没有任何更改,所以我刷新了页面,然后收到以下错误:
您的帐户已被阻止。如果您认为这是一个错误,请联系您的GitLab管理员。

如何解除我的帐户?

PS:我开了一个Gitlab SaaS帐户

I wanted to change my username on GitLab so I followed the following procedure:

  1. Navigate to your profile's Settings > Account.
  2. Enter a new username under Change username.
  3. Click Update username.

After clicking on update nothing seem to change so I refreshed the page and I receive the following error:
Your account has been blocked. Please contact your GitLab administrator if you think this is an error.

How do I unblock my account?

PS: I opened a GitLab SaaS account

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

怪我太投入 2025-01-25 16:27:22

此帖子提到

检查/admin/application_settings/general>展开注册限制,并验证注册时发送确认电子邮件复选框是否已选中或未选中?

启用该设置后将发送一封确认电子邮件,并且要“解锁”该用户,需要单击确认电子邮件中的确认链接。

如果您使用 Ansible 创建用户,但未收到确认电子邮件且未点击其中包含的链接,则会导致您看到“用户被阻止”错误。

如果您没有选中此要求的复选框,我怀疑默认设置可能在 12.9.x 中已更改。您是否注意到在升级之前是否选中了此复选框?

取消选中该框,或在 GitLab 管理 UI 中手动“确认”Ansible 创建的用户的电子邮件应该会删除对该用户的阻止。

在您的情况下,由于您要手动更改用户,请查看是否:

  • IP 被阻止(尝试从另一个网络/设备)
  • 如果您打开了 IDE,并且通过 HTTPS 访问了 GitLab 存储库:IDE 可能需要刷新 Git 存储库定期声明,并将使用旧凭据(旧用户名)。

OP goutam thakur评论 :

在我通过表单“Gitlab.com (SaaS) 用户帐户和登录问题"。

This thread mentions

Check <external_url>/admin/application_settings/general > expand Sign-up Restrictions, and verify if the checkbox for Send confirmation email on sign-up is checked or unchecked?

Having that setting enabled will send a confirmation email, and for that user to be “unlocked”, it requires the confirmation link in the confirmation email is clicked.

If you’re creating a user with Ansible and the confirmation email isn’t received and the link it contains clicked, it would cause the “user is blocked” error you’re seeing.

If you did not check the box for this requirement, I suspect the default setting might’ve changed in 12.9.x. Do you notice if this checkbox was checked before upgrading?

Unchecking the box, or manually “confirming” the email of your Ansible-created user in the GitLab Admin UI should remove the block on this user.

In your case, since you are changing the user manually, see if:

  • the IP is blocked (try from another network/device)
  • if you have an IDE opened with a GitLab repository accessed through HTTPS: the IDE might need to refresh the Git repository state periodically, and would be using the old credentials (old username).

The OP goutam thakur confirms in the comments:

My account was unblocked after I submitted a request through the form "Gitlab.com (SaaS) user accounts and login issues".

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文