Store Last.fm API key with encrypted secret
This commit is contained in:
@@ -779,3 +779,8 @@ msgstr ""
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Disc %{no}"
|
||||
msgstr ""
|
||||
|
||||
#: lib/music_library_web/controllers/last_fm_controller.ex
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Successfully connected your Last.fm account"
|
||||
msgstr ""
|
||||
|
||||
@@ -779,3 +779,8 @@ msgstr ""
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Disc %{no}"
|
||||
msgstr ""
|
||||
|
||||
#: lib/music_library_web/controllers/last_fm_controller.ex
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Successfully connected your Last.fm account"
|
||||
msgstr ""
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
defmodule MusicLibrary.Repo.Migrations.CreateSecrets do
|
||||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
create table(:secrets, primary_key: false) do
|
||||
add :name, :string, primary_key: true
|
||||
add :value, :binary, null: false
|
||||
|
||||
timestamps()
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user