mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Drop legacy OpenID 2.0 support (#8894)
This is not used in core or official plugins, and has been printing a deprecation notice since v2.3.0beta4. All OpenID 2.0 code and dependencies have been dropped. The user_open_ids table remains for now, in case anyone has missed the deprecation notice, and needs to migrate their data. Context at https://meta.discourse.org/t/-/113249
This commit is contained in:
@@ -1,10 +1,19 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
# This table is no longer used in core, but may be used by unofficial plugins
|
||||
class UserOpenId < ActiveRecord::Base
|
||||
after_initialize :raise_deprecation_error
|
||||
|
||||
belongs_to :user
|
||||
|
||||
validates_presence_of :email
|
||||
validates_presence_of :url
|
||||
|
||||
private
|
||||
|
||||
def raise_deprecation_error
|
||||
raise "The user_open_ids table has been deprecated, and will be dropped in v2.5. See https://meta.discourse.org/t/-/113249"
|
||||
end
|
||||
end
|
||||
|
||||
# == Schema Information
|
||||
|
||||
Reference in New Issue
Block a user