- Add UserSudoController with GET and POST /users/sudo/verify routes - Create verify.html.heex template for TOTP verification form - Only accept TOTP codes (6 numeric digits), reject recovery codes - Update grant_sudo_mode to set authenticated_at virtual field - Exclude /users/sudo paths from return_to overwriting - Add comprehensive controller tests (12 test cases) - Verify redirect behavior, error handling, and session management 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
7 lines
125 B
Elixir
7 lines
125 B
Elixir
defmodule ToweropsWeb.UserSudoHTML do
|
|
@moduledoc false
|
|
|
|
use ToweropsWeb, :html
|
|
|
|
embed_templates "user_sudo_html/*"
|
|
end
|