From 59b71e65a7f204fd34f23e3703976dbd5a9b580a Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Fri, 21 Feb 2020 22:23:12 +0800 Subject: [PATCH] =?UTF-8?q?qq=E7=BB=91=E5=AE=9A=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/services/create_bind_user_service.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/services/create_bind_user_service.rb b/app/services/create_bind_user_service.rb index 86ac6c93b..58956694e 100644 --- a/app/services/create_bind_user_service.rb +++ b/app/services/create_bind_user_service.rb @@ -17,6 +17,7 @@ class CreateBindUserService < ApplicationService bind_user = User.try_to_login(params[:username], params[:password]) raise Error, '用户名或者密码错误' if bind_user.blank? + raise Error, '用户名或者密码错误' unless bind_user.check_password?(params[:password].to_s) raise Error, '该账号已被绑定,请更换其他账号进行绑定' if bind_user.bind_open_user?(params[:type].to_s) ActiveRecord::Base.transaction do