Browse Source

FIX code bug

tags/v1.0.0
Jasder 5 years ago
parent
commit
a0c80d8d25
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/controllers/ci/cloud_accounts_controller.rb

+ 1
- 1
app/controllers/ci/cloud_accounts_controller.rb View File

@@ -84,7 +84,7 @@ class Ci::CloudAccountsController < Ci::BaseController
end

def oauth_grant
password = params[:password].strip.to_s
password = params[:password].to_s
return render_error('你输入的密码不正确.') unless current_user.check_password?(password)

oauth = current_user.oauths.last


Loading…
Cancel
Save