开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜