Browse Source

Merge pull request 'fix 修复验证无效的bug' (#237) from jasder/forgeplus:featrue_login_and_register into featrue_login_and_register

tags/v4.0.0^2
jasder 4 years ago
parent
commit
7a14949063
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      app/forms/accounts/reset_password_form.rb

+ 2
- 3
app/forms/accounts/reset_password_form.rb View File

@@ -17,11 +17,10 @@ module Accounts
db_verifi_code =
if type == 1
check_phone_format(login)
VerificationCode.where(phone: login, code: code, code_type: 1).last
VerificationCode.where(phone: login, code: code, code_type: 2).last
elsif type == 0
Rails.logger.info "9999999999 #{login}"
check_email_format(login)
VerificationCode.where(email: login, code: code, code_type: 8).last
VerificationCode.where(email: login, code: code, code_type: 3).last
end
check_password(password)


Loading…
Cancel
Save