mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
DEV: Upgrade to Rails 7
This patch upgrades Rails to version 7.0.2.4.
This commit is contained in:

committed by
Loïc Guitaut

parent
532f9cdb1a
commit
008b700a3f
@ -97,7 +97,7 @@ class UserApiKeysController < ApplicationController
|
||||
query_attributes << "oneTimePassword=#{CGI.escape(otp_payload)}" if scopes.include?("one_time_password")
|
||||
uri.query = query_attributes.compact.join('&')
|
||||
|
||||
redirect_to(uri.to_s)
|
||||
redirect_to(uri.to_s, allow_other_host: true)
|
||||
else
|
||||
respond_to do |format|
|
||||
format.html { render :show }
|
||||
@ -138,7 +138,7 @@ class UserApiKeysController < ApplicationController
|
||||
otp_payload = one_time_password(public_key, current_user.username)
|
||||
|
||||
redirect_path = "#{params[:auth_redirect]}?oneTimePassword=#{CGI.escape(otp_payload)}"
|
||||
redirect_to(redirect_path)
|
||||
redirect_to(redirect_path, allow_other_host: true)
|
||||
end
|
||||
|
||||
def revoke
|
||||
|
Reference in New Issue
Block a user