From bd6dad85e1be53ffe8166f1f659c9281d544cbd3 Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Mon, 2 Feb 2026 10:20:59 -0600 Subject: [PATCH] purge more passkey and gettext updates --- lib/towerops/accounts/login_attempt.ex | 6 +- .../controllers/api_docs_html/index.html.heex | 1 - .../user_registration_html/new.html.heex | 55 ++--- .../user_reset_password_html/edit.html.heex | 12 +- .../user_reset_password_html/new.html.heex | 10 +- .../user_session_html/new.html.heex | 47 ++--- .../live/org/settings_live.html.heex | 2 +- lib/towerops_web/live/user_settings_live.ex | 2 +- .../live/user_settings_live.html.heex | 74 ------- .../live/user_settings_live/helpers.ex | 1 - priv/gettext/auth.pot | 199 ++++++++++++++++++ priv/gettext/default.pot | 5 + priv/gettext/en/LC_MESSAGES/auth.po | 199 ++++++++++++++++++ priv/gettext/en/LC_MESSAGES/default.po | 5 + .../controllers/user_session_html_test.exs | 1 - .../live/org/settings_live_test.exs | 27 +-- 16 files changed, 473 insertions(+), 173 deletions(-) diff --git a/lib/towerops/accounts/login_attempt.ex b/lib/towerops/accounts/login_attempt.ex index 4477df22..b3de223d 100644 --- a/lib/towerops/accounts/login_attempt.ex +++ b/lib/towerops/accounts/login_attempt.ex @@ -16,8 +16,8 @@ defmodule Towerops.Accounts.LoginAttempt do @primary_key {:id, :binary_id, autogenerate: true} @foreign_key_type :binary_id - @valid_methods ~w(password magic_link webauthn mobile_qr) - @valid_failure_reasons ~w(invalid_credentials invalid_totp invalid_magic_link invalid_passkey account_disabled) + @valid_methods ~w(password magic_link mobile_qr) + @valid_failure_reasons ~w(invalid_credentials invalid_totp invalid_magic_link account_disabled) schema "login_attempts" do field :email, :string @@ -46,7 +46,7 @@ defmodule Towerops.Accounts.LoginAttempt do ## Required fields - `:success` - Boolean indicating if login was successful - - `:method` - Login method (password, magic_link, webauthn, mobile_qr) + - `:method` - Login method (password, magic_link, mobile_qr) - `:ip_address` - IP address of the login attempt ## Conditional validation diff --git a/lib/towerops_web/controllers/api_docs_html/index.html.heex b/lib/towerops_web/controllers/api_docs_html/index.html.heex index 2d597a7c..8f113fd4 100644 --- a/lib/towerops_web/controllers/api_docs_html/index.html.heex +++ b/lib/towerops_web/controllers/api_docs_html/index.html.heex @@ -1178,7 +1178,6 @@ curl -X DELETE https://towerops.net/api/v1/devices/650e8400-e29b-41d4-a716-44665