在rails 3中进行身份验证的最常用方法是什么?

时间:2021-08-27 15:49:34

I need to do authentication in rail3 with standard sign up/login/forgot password functionality. Is there a plugin or something that most people use for this?

我需要在rail3中使用标准注册/登录/忘记密码功能进行身份验证。是否有插件或大多数人使用的东西?

2 个解决方案

#1


10  

I'm not sure what the most common method is - but certainly a very popular gem is 'Devise', by Plataformatec: http://github.com/plataformatec/devise

我不确定最常用的方法是什么 - 但Plataformatec肯定是一个非常受欢迎的宝石'Devise':http://github.com/plataformatec/devise

I've tried a few auth gems and for me, it was the simplest to setup and modify to my needs. It has built in password recovery, as well as account confirmation (if required) and a few other very handy features.

我尝试了一些auth宝石,对我来说,最简单的设置和修改我的需求。它内置了密码恢复功能,以及帐户确认功能(如果需要)和其他一些非常方便的功能。

#2


2  

The most popular is definately authlogic. I would agree with theTRON though, devise is the way to go.

最流行的是绝对的authlogic。我同意TRON,设计是要走的路。

#1


10  

I'm not sure what the most common method is - but certainly a very popular gem is 'Devise', by Plataformatec: http://github.com/plataformatec/devise

我不确定最常用的方法是什么 - 但Plataformatec肯定是一个非常受欢迎的宝石'Devise':http://github.com/plataformatec/devise

I've tried a few auth gems and for me, it was the simplest to setup and modify to my needs. It has built in password recovery, as well as account confirmation (if required) and a few other very handy features.

我尝试了一些auth宝石,对我来说,最简单的设置和修改我的需求。它内置了密码恢复功能,以及帐户确认功能(如果需要)和其他一些非常方便的功能。

#2


2  

The most popular is definately authlogic. I would agree with theTRON though, devise is the way to go.

最流行的是绝对的authlogic。我同意TRON,设计是要走的路。