[#923] OAuth: prototype of sign in / sign up with Twitter.
This commit is contained in:
parent
63ab61ed3f
commit
aacbf0f570
10 changed files with 209 additions and 37 deletions
|
|
@ -0,0 +1,12 @@
|
|||
defmodule Pleroma.Repo.Migrations.AddAuthProviderAndAuthProviderUidToUsers do
|
||||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
alter table(:users) do
|
||||
add :auth_provider, :string
|
||||
add :auth_provider_uid, :string
|
||||
end
|
||||
|
||||
create unique_index(:users, [:auth_provider, :auth_provider_uid])
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue