绕过Devise宝石注册表来创建新用户? [英] Bypassing Devise gem registration form to create a new user?

查看:137
本文介绍了绕过Devise宝石注册表来创建新用户?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用设计宝石,并在rails项目中重新添加项目
可以任何一个给我一个提示:

如何创建一个新用户绕过recaptcha和没有提交一种设计宝石的形式。

解决方案

你必须通过继承 Devise :: SessionsController 并覆盖动作注册



有关详细信息:
https://github.com/plataformatec/devise#configuring-controllers


I am usin devise gem and recaptch in rails project
can any one give me a hint:

how to create a new user bypassing recaptcha and without submitting a form of devise gem.

解决方案

You have to create a new controller by inheriting the Devise::SessionsController and override the action register.

For more details: https://github.com/plataformatec/devise#configuring-controllers

这篇关于绕过Devise宝石注册表来创建新用户?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆