From b31a934a804aed3f35442ceafe2080b0955e7317 Mon Sep 17 00:00:00 2001 From: dcc Date: Wed, 15 May 2024 00:57:23 -0700 Subject: total rebase --- lib/pleroma/mfa/backup_codes.ex | 0 lib/pleroma/mfa/changeset.ex | 0 lib/pleroma/mfa/settings.ex | 0 lib/pleroma/mfa/token.ex | 0 lib/pleroma/mfa/totp.ex | 3 ++- 5 files changed, 2 insertions(+), 1 deletion(-) mode change 100755 => 100644 lib/pleroma/mfa/backup_codes.ex mode change 100755 => 100644 lib/pleroma/mfa/changeset.ex mode change 100755 => 100644 lib/pleroma/mfa/settings.ex mode change 100755 => 100644 lib/pleroma/mfa/token.ex mode change 100755 => 100644 lib/pleroma/mfa/totp.ex (limited to 'lib/pleroma/mfa') diff --git a/lib/pleroma/mfa/backup_codes.ex b/lib/pleroma/mfa/backup_codes.ex old mode 100755 new mode 100644 diff --git a/lib/pleroma/mfa/changeset.ex b/lib/pleroma/mfa/changeset.ex old mode 100755 new mode 100644 diff --git a/lib/pleroma/mfa/settings.ex b/lib/pleroma/mfa/settings.ex old mode 100755 new mode 100644 diff --git a/lib/pleroma/mfa/token.ex b/lib/pleroma/mfa/token.ex old mode 100755 new mode 100644 diff --git a/lib/pleroma/mfa/totp.ex b/lib/pleroma/mfa/totp.ex old mode 100755 new mode 100644 index 429c4b7..96fa8d7 --- a/lib/pleroma/mfa/totp.ex +++ b/lib/pleroma/mfa/totp.ex @@ -14,6 +14,7 @@ defmodule Pleroma.MFA.TOTP do @doc """ https://github.com/google/google-authenticator/wiki/Key-Uri-Format """ + @spec provisioning_uri(String.t(), String.t(), list()) :: String.t() def provisioning_uri(secret, label, opts \\ []) do query = %{ @@ -27,7 +28,7 @@ defmodule Pleroma.MFA.TOTP do |> URI.encode_query() %URI{scheme: "otpauth", host: "totp", path: "/" <> label, query: query} - |> URI.to_string() + |> to_string() end defp default_period, do: Config.get(@config_ns ++ [:period]) -- cgit v1.2.3