Store Last.fm API key with encrypted secret

This commit is contained in:
Claudio Ortolina
2025-05-06 15:18:14 +01:00
parent d5b29b20bb
commit 95f71519d3
12 changed files with 87 additions and 9 deletions
+5
View File
@@ -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 ""
+5
View File
@@ -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