{"record":{"id":"27bbce4da4510e58","repo":"caddyserver/caddy","slug":"password-does-not-match","errorCode":null,"errorMessage":"password does not match","messagePattern":"password does not match","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"modules/caddyhttp/caddyauth/command.go","lineNumber":125,"sourceCode":"\t\t\t}()\n\t\t\tdefer signal.Stop(c)\n\n\t\t\tfmt.Fprint(os.Stderr, \"Enter password: \")\n\t\t\tplaintext, err = term.ReadPassword(fd)\n\t\t\tfmt.Fprintln(os.Stderr)\n\t\t\tif err != nil {\n\t\t\t\treturn caddy.ExitCodeFailedStartup, err\n\t\t\t}\n\n\t\t\tfmt.Fprint(os.Stderr, \"Confirm password: \")\n\t\t\tconfirmation, err := term.ReadPassword(fd)\n\t\t\tfmt.Fprintln(os.Stderr)\n\t\t\tif err != nil {\n\t\t\t\treturn caddy.ExitCodeFailedStartup, err\n\t\t\t}\n\n\t\t\tif !bytes.Equal(plaintext, confirmation) {\n\t\t\t\treturn caddy.ExitCodeFailedStartup, fmt.Errorf(\"password does not match\")\n\t\t\t}\n\t\t} else {\n\t\t\trd := bufio.NewReader(os.Stdin)\n\t\t\tplaintext, err = rd.ReadBytes('\\n')\n\t\t\tif err != nil {\n\t\t\t\treturn caddy.ExitCodeFailedStartup, err\n\t\t\t}\n\n\t\t\tplaintext = plaintext[:len(plaintext)-1] // Trailing newline\n\t\t}\n\n\t\tif len(plaintext) == 0 {\n\t\t\treturn caddy.ExitCodeFailedStartup, fmt.Errorf(\"plaintext is required\")\n\t\t}\n\t}\n\n\tvar hash []byte\n\tvar hashString string","sourceCodeStart":107,"sourceCodeEnd":143,"githubUrl":"https://github.com/caddyserver/caddy/blob/50e54ee279aa1e504fe218ca49ab6ae16c100410/modules/caddyhttp/caddyauth/command.go#L107-L143","documentation":"Error \"password does not match\" thrown in caddyserver/caddy.","triggerScenarios":"Thrown at modules/caddyhttp/caddyauth/command.go:125 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Enter the same password twice when prompted by the 'caddy hash-password' command."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"50e54ee279aa1e504fe218ca49ab6ae16c100410","analyzedAt":"2026-08-15T09:20:21.641Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}