注册失败,提示中英文混合

This commit is contained in:
lizanle 2015-04-10 14:33:03 +08:00
parent 9ef212b6d3
commit fc66050413
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ module Mobile
us = UsersService.new
user = us.register params.merge(:password_confirmation => params[:password],
: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 :status, 0