This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
Gitlink
/
forgeplus
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
16
Wiki
evaluate
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
HPC
Browse Source
fixed 验证码校验匹配规则修正
pull/313/head
xxq250
3 years ago
parent
5da6330f57
commit
b68ab63eba
2 changed files
with
2 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
app/services/api/v1/users/update_email_service.rb
+1
-1
app/services/api/v1/users/update_phone_service.rb
+ 1
- 1
app/services/api/v1/users/update_email_service.rb
View File
@@ -14,7 +14,7 @@ class Api::V1::Users::UpdateEmailService < ApplicationService
@mail = params[:email]
@old_mail = user.mail
@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
def call
+ 1
- 1
app/services/api/v1/users/update_phone_service.rb
View File
@@ -11,7 +11,7 @@ class Api::V1::Users::UpdatePhoneService < ApplicationService
@password = params[:password]
@phone = params[:phone]
@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
def call
Write
Preview
Loading…
Cancel
Save