mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
This makes testing much easier. But probably also good for users to revoke any access via OIDC apps. It also enables users to then connect to a different account, or just renew the current connection.
15 lines
302 B
Ruby
15 lines
302 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Admin
|
|
class OidcSettingsController < Spree::Admin::BaseController
|
|
def index
|
|
@account = spree_current_user.oidc_account
|
|
end
|
|
|
|
def destroy
|
|
spree_current_user.oidc_account&.destroy
|
|
redirect_to admin_oidc_settings_path
|
|
end
|
|
end
|
|
end
|