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:
David Taylor
2020-02-07 17:32:35 +00:00
committed by GitHub
parent e3c3c88ab5
commit 5919618a87
16 changed files with 12 additions and 203 deletions

View File

@@ -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