OIDC-only sign-in, Vereinfacht connection test, locale defaults, and settings/docs cleanup #445
1 changed files with 20 additions and 0 deletions
|
|
@ -0,0 +1,20 @@
|
|||
defmodule Mv.Repo.Migrations.AddOidcOnlyToSettings do
|
||||
@moduledoc """
|
||||
Adds oidc_only flag to settings. When true and OIDC is configured,
|
||||
the sign-in page shows only OIDC (password login is hidden).
|
||||
"""
|
||||
|
||||
use Ecto.Migration
|
||||
|
||||
def up do
|
||||
alter table(:settings) do
|
||||
add :oidc_only, :boolean, default: false, null: false
|
||||
end
|
||||
end
|
||||
|
||||
def down do
|
||||
alter table(:settings) do
|
||||
remove :oidc_only
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue