mirror of
https://github.com/System-End/cdn.git
synced 2026-04-19 15:18:15 +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)
|
def self.find_or_create_from_omniauth(auth)
|
||||||
hca_id = auth.uid
|
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?
|
raise "Missing HCA user ID from authentication" if hca_id.blank?
|
||||||
|
|
||||||
user = find_by(hca_id:)
|
user = find_by(hca_id:)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue