fixed 验证码校验匹配规则修正
This commit is contained in:
parent
5da6330f57
commit
b68ab63eba
|
@ -14,7 +14,7 @@ class Api::V1::Users::UpdateEmailService < ApplicationService
|
||||||
@mail = params[:email]
|
@mail = params[:email]
|
||||||
@old_mail = user.mail
|
@old_mail = user.mail
|
||||||
@code = params[:code]
|
@code = params[:code]
|
||||||
@verify_code = VerificationCode.where(email: @mail, code: @code, code_type: 10).last
|
@verify_code = VerificationCode.where(email: @mail, code_type: 10).last
|
||||||
end
|
end
|
||||||
|
|
||||||
def call
|
def call
|
||||||
|
|
|
@ -11,7 +11,7 @@ class Api::V1::Users::UpdatePhoneService < ApplicationService
|
||||||
@password = params[:password]
|
@password = params[:password]
|
||||||
@phone = params[:phone]
|
@phone = params[:phone]
|
||||||
@code = params[:code]
|
@code = params[:code]
|
||||||
@verify_code = VerificationCode.where(phone: @phone, code: @code, code_type: 4).last
|
@verify_code = VerificationCode.where(phone: @phone, code_type: 4).last
|
||||||
end
|
end
|
||||||
|
|
||||||
def call
|
def call
|
||||||
|
|
Loading…
Reference in New Issue