fixed ci4s oauth2接入

This commit is contained in:
2024-10-23 11:11:14 +08:00
parent 8db7bbd51c
commit dd3c14e50e
4 changed files with 134 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
# == Schema Information
#
# Table name: open_users
#
# id :integer not null, primary key
# user_id :integer
# type :string(255)
# uid :string(255)
# created_at :datetime not null
# updated_at :datetime not null
# extra :text(65535)
#
# Indexes
#
# index_open_users_on_type_and_uid (type,uid) UNIQUE
# index_open_users_on_user_id (user_id)
#
class OpenUsers::Ci4s < OpenUser
def nickname
extra&.[]('username')
end
def en_type
'ci4s'
end
end