注册失败,提示中英文混合
This commit is contained in:
parent
9ef212b6d3
commit
fc66050413
|
@ -14,7 +14,7 @@ module Mobile
|
||||||
us = UsersService.new
|
us = UsersService.new
|
||||||
user = us.register params.merge(:password_confirmation => params[:password],
|
user = us.register params.merge(:password_confirmation => params[:password],
|
||||||
:should_confirmation_password => true)
|
:should_confirmation_password => true)
|
||||||
raise "register failed #{user.errors.full_messages}" if user.new_record?
|
raise "该邮箱已经被注册过了" if user.new_record?
|
||||||
|
|
||||||
present :data, user, with: Mobile::Entities::User
|
present :data, user, with: Mobile::Entities::User
|
||||||
present :status, 0
|
present :status, 0
|
||||||
|
|
Loading…
Reference in New Issue