gitlab 忘记密码找回办法

自从各种软件的密码
1.禁止使用123456,
2.禁止使用低于8位
3.要求有大小写
4.要求有特殊字符

默认安装的软件也就乱套了,过了几天就忘记了设置什么密码了。

gitlab-rails console 
 
 user = User.where(id:1).first
 user.password=密码
user.password='dowhere.com'
user.save!
 
irb(main):005:0> user.save!
Enqueued ActionMailer::MailDeliveryJob (Job ID: 7576ea0b-3a87-4737-a46e-09906358399b) to Sidekiq(mailers) with arguments: "DeviseMailer", "password_change", "deliver_now", {:args=>[#<GlobalID:0x00007f743e0ffcd0 @uri=#<URI::GID gid://gitlab/User/1>>]}
=> true
irb(main):006:0>


This entry was posted in Linux. Bookmark the permalink.
月小升QQ 2651044202, 技术交流QQ群 178491360
首发地址:月小升博客https://java-er.com/blog/gitlab-forget-password/
无特殊说明,文章均为月小升原创,欢迎转载,转载请注明本文地址,谢谢
您的评论是我写作的动力.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

*