mirror of
https://github.com/System-End/hackatime.git
synced 2026-04-20 00:35:22 +00:00
Attempt to fix allow_other_host link to slack
This commit is contained in:
parent
1a131b1982
commit
2d3dc8b9a3
1 changed files with 3 additions and 1 deletions
|
|
@ -2,7 +2,9 @@ class SessionsController < ApplicationController
|
|||
def new
|
||||
redirect_uri = url_for(action: :create, only_path: false)
|
||||
Rails.logger.info "Starting Slack OAuth flow with redirect URI: #{redirect_uri}"
|
||||
redirect_to User.authorize_url(redirect_uri), host: "https://slack.com"
|
||||
redirect_to User.authorize_url(redirect_uri),
|
||||
host: "https://slack.com",
|
||||
allow_other_host: true
|
||||
end
|
||||
|
||||
def create
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue