GitLab8取消邮箱验证

GitLab8取消邮箱验证功能

参考文献:http://blog.csdn.net/wangxicoding/article/details/52713826

我参考了网上的文章进行GitLab的源码修改,但是有些页面会报错,所以添加了一些东西

cd ./apps/gitlab/htdocs/app/models/

cp user.rb user.rb.bak

vi user.rb

# 删掉 devise后面的confirmable

# 保存

cd ./apps/gitlab/htdocs/vendor/bundle/ruby/2.1.0/gems/devise-3.5.4/test/

cp failure_app_test.rb failure_app_test.rb.bak

vi failure_app_test.rb # 删掉有“You have to confirm your email address before

continuing”的内容

cd integration/

cp confirmable_test.rb confirmable_test.rb.bak

vi confirmable_test.rb # 删除字符串的 test end 块

cd ./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的块

cd ./apps/gitlab/htdocs/app/views/admin/users

vi show.html.haml # 删除或者注释有@user.confirmed的代码块

cd ./apps/gitlab/htdocs/app/controllers/admin/

cp users_controller.rb users_controller.rb.bak

vi users_controller.rb # 删除或者注释有skip_reconfirmation的代码块

cd ./apps/gitlab/htdocs/app/views/profiles

vi show.html.haml #取消有We also use email for avatar detection if no avatar is uploaded.的if else判断

 

 

转载于:https://my.oschina.net/u/1442240/blog/832292

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值