rails 3 authentication

允我心安 提交于 2019-12-25 08:36:07

问题


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?


回答1:


Is there any reason why you can not use Basic Http Authentication? IMHO devise seems to be an overkill for this usecase.



来源:https://stackoverflow.com/questions/3766601/rails-3-authentication

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!