开发者

Rails3 RegexpError (regular expression too big: /password|password_confirmation)

开发者 https://www.devze.com 2023-04-05 15:02 出处:网络
I\'m using Rails 3.0.0 with Authlogic 2.1.6 and from time to time I\'m getting this error message: RegexpError (regular expression too big:

I'm using Rails 3.0.0 with Authlogic 2.1.6 and from time to time I'm getting this error message:

RegexpError (regular expression too big: /password|password_confirmation....

It results with internal server error and I have to restart my server to get it work again. Anyone know ho开发者_如何转开发w to avoid this issue?


It's sounding as though the :length of the password and/or password_confirmation fields is too long. Do a validation first: validates_length_of :password … to keep too large of passwords from being entered.

0

精彩评论

暂无评论...
验证码 换一张
取 消