diff options
Diffstat (limited to 'lib/pleroma/mfa')
| -rw-r--r--[-rwxr-xr-x] | lib/pleroma/mfa/backup_codes.ex | 0 | ||||
| -rw-r--r--[-rwxr-xr-x] | lib/pleroma/mfa/changeset.ex | 0 | ||||
| -rw-r--r--[-rwxr-xr-x] | lib/pleroma/mfa/settings.ex | 0 | ||||
| -rw-r--r--[-rwxr-xr-x] | lib/pleroma/mfa/token.ex | 0 | ||||
| -rw-r--r--[-rwxr-xr-x] | lib/pleroma/mfa/totp.ex | 3 |
5 files changed, 2 insertions, 1 deletions
diff --git a/lib/pleroma/mfa/backup_codes.ex b/lib/pleroma/mfa/backup_codes.ex index 2f6962c..2f6962c 100755..100644 --- a/lib/pleroma/mfa/backup_codes.ex +++ b/lib/pleroma/mfa/backup_codes.ex diff --git a/lib/pleroma/mfa/changeset.ex b/lib/pleroma/mfa/changeset.ex index 3ec3cfe..3ec3cfe 100755..100644 --- a/lib/pleroma/mfa/changeset.ex +++ b/lib/pleroma/mfa/changeset.ex diff --git a/lib/pleroma/mfa/settings.ex b/lib/pleroma/mfa/settings.ex index 2c7f13e..2c7f13e 100755..100644 --- a/lib/pleroma/mfa/settings.ex +++ b/lib/pleroma/mfa/settings.ex diff --git a/lib/pleroma/mfa/token.ex b/lib/pleroma/mfa/token.ex index 57bc11e..57bc11e 100755..100644 --- a/lib/pleroma/mfa/token.ex +++ b/lib/pleroma/mfa/token.ex diff --git a/lib/pleroma/mfa/totp.ex b/lib/pleroma/mfa/totp.ex index 429c4b7..96fa8d7 100755..100644 --- 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]) |
