Strengthen setup password validation
- Add backend Pydantic password complexity validation for setup - Update frontend setup page with password rule feedback and strength indicator - Add/adjust setup API tests for password validation - Document setup password requirements - Fix frontend test type annotation issue
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { areHistoryQueriesEqual } from "../queryUtils";
|
||||
import type { HistoryQuery } from "../../types/history";
|
||||
|
||||
describe("areHistoryQueriesEqual", () => {
|
||||
it("returns true for identical history queries", () => {
|
||||
const a = {
|
||||
const a: HistoryQuery = {
|
||||
range: "7d",
|
||||
origin: "blocklist",
|
||||
jail: "ssh",
|
||||
@@ -19,7 +20,7 @@ describe("areHistoryQueriesEqual", () => {
|
||||
});
|
||||
|
||||
it("returns false when a single query field differs", () => {
|
||||
const base = {
|
||||
const base: HistoryQuery = {
|
||||
range: "7d",
|
||||
origin: "all",
|
||||
jail: "ssh",
|
||||
|
||||
Reference in New Issue
Block a user