Start a Rails console. Find the user and skip reconfirmation: user = User.find(1) user.skip_reconfirmation! Attempt to sign in again
user = User.find(1) user.skip_reconfirmation! 1. 2. 再试一次登记。 重置根目录密码 上述步骤也可用于重置根密码。 在没有手动更改root帐户用户名的正常安装中,Rake任务可以与用户名一起使用。root若要重置根密码,请执行以下操作。 如果用户名被更改为其他内容并已被遗忘,一种可能的方法是使用带有用户ID的Rai...
skip_reconfirmation (optional) - Skip reconfirmation - true or false (default) external (optional) - Flags the user as external - true or false (default) shared_runners_minutes_limit (optional) - Pipeline minutes quota for this user extra_shared_runners_minutes_limit (optional) - Extra pipeline...
('@') end def add_email(user, new_email) production_client .edit_user(user.id, email: new_email, skip_reconfirmation: true) end def remove_old_email(user, old_email) secondary_emails = production_client.emails(user.id) 211 212 213 214 215 216 217 218 219 220 221 ...
fix update user bug. skip_confirmation should be skip_reconfirmation when updating user.961a054105a1615 zhengrenjie 2018-06-10 17:18:01No issueUpdated for release 4.8.21677dcf36839f150 Greg Messner 2018-06-10 20:07:54gitlab4j-api-4.8.20...
skip_reconfirmation! user.save! end You can then run a UserSync (PREMIUM SELF) to sync the latest DN for each of these users. Expired license causes errors with multiple LDAP servers Using multiple LDAP servers requires a valid license. An expired license can cause: 502 errors in the web ...
user.email = 'test@test.com' user.skip_reconfirmation! user.save ' Run Code Online (Sandbox Code Playgroud) 编辑:这曾经在旧版本中工作,但不再需要,因为我在使用用户 API 时添加了跳过确认: https://docs.gitlab.com/ee/api/users.html#add-email -针对用户...
skip_reconfirmation No 跳过确认-正确或错误(默认) skype No Skype 帐号 theme_id No 用户的 GitLab 主题(有关更多信息,请参见用户首选项文档) twitter No Twitter 账号 username No Username website_url No 网址密码更新时,用户将被迫在下次登录时进行更改. 请注意,此方法目前仅返回404错误,即使在409...