轨道3认证 [英] rails 3 authentication
本文介绍了轨道3认证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用的铁轨3和使用设计的宝石认证目前buidling我自己的博客。问题是,我想只有一个用户在这里---管理员用户和prehibits他人签约,我怎么能achive呢?
i'm currently buidling my own blog using rails 3. and use devise gem for authentication. the problem is , i want only one user out here --- the admin user, and prehibits others from signing up, how can I achive that?
推荐答案
是否有任何理由,为什么你不能使用的基本HTTP认证?恕我直言色器件似乎是这个用例矫枉过正。
Is there any reason why you can not use Basic Http Authentication? IMHO devise seems to be an overkill for this usecase.
这篇关于轨道3认证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文