java登录域验证失败_设计登录验证失败

我用以下用户表安装rails3.0.4和devise

create_table "users", :force => true do |t|

t.string "login"

t.string "email"

t.string "crypted_password", :null => false

t.string "password_salt", :null => false

t.string "persistence_token", :null => false

t.string "single_access_token", :null => false

t.string "perishable_token", :null => false

t.datetime "created_at"

t.datetime "updated_at"

t.string "database_authenticatable", :null => false

t.string "recoverable"

t.string "rememberable"

t.string "trackable"

t.string "reset_password_token"

end

用户表不是由设计创建的,但我在迁移中添加了必要的列 . 并在config / initializers / devise.rb中进行以下设置

config.authentication_keys = [ :email]

但每次我尝试注册为新用户时,它会抛出:

2 errors prohibited this user from being saved:

Login is too short (minimum is 3 characters)

Login should use only letters, numbers, spaces, and .-_@ please.

任何想法为什么会发生?

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值