Introduce support for 3rd-party auth (OAuth2 & LDAP)
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
defmodule Mobilizon.Storage.Repo.Migrations.AddProviderToUserAndMakePasswordMandatory do
|
||||
use Ecto.Migration
|
||||
|
||||
def up do
|
||||
alter table(:users) do
|
||||
add(:provider, :string, null: true)
|
||||
modify(:password_hash, :string, null: true)
|
||||
end
|
||||
end
|
||||
|
||||
def down do
|
||||
alter table(:users) do
|
||||
remove(:provider)
|
||||
modify(:password_hash, :string, null: false)
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user