mirror of
https://github.com/System-End/cdn.git
synced 2026-04-19 11:20:25 +00:00
UGH
This commit is contained in:
parent
cd73ee5b57
commit
a3e2de54e4
1 changed files with 1 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ class User < ApplicationRecord
|
|||
|
||||
def self.find_or_create_from_omniauth(auth)
|
||||
hca_id = auth.uid
|
||||
slack_id = auth.extra.raw_info.slack_id
|
||||
slack_id = auth.extra.raw_info.dig("identity", "slack_id")
|
||||
raise "Missing HCA user ID from authentication" if hca_id.blank?
|
||||
|
||||
user = find_by(hca_id:)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue