GitLab8取消用户注册邮箱验证功能

来源:互联网 发布:烟花特效软件 编辑:程序博客网 时间:2024/05/04 04:01

##  目录根据自己git安装的目录自行修改,为防止万一,对所有修改的文件进行备份

=============================================================


1.  cd /data/gitlab-8.5.1-0/apps/gitlab/htdocs/app/models/

     cp user.rb user.rb.bak

     vi user.rb删掉devise后面的confirmable

    

2.   cd /data/gitlab-8.5.1-0/apps/gitlab/htdocs/app/views/devise/shared/

cp_signup_box.html.haml_signup_box.html.haml.bak

vi_signup_box.html.haml把最后五行删掉,即含有new_confirmation_path的块





原创粉丝点击