1. 程式人生 > >GitLab8取消使用者註冊郵箱驗證功能

GitLab8取消使用者註冊郵箱驗證功能

##  目錄根據自己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的塊