Skip to content
This repository has been archived by the owner on Sep 24, 2024. It is now read-only.

Commit

Permalink
enhance code
Browse files Browse the repository at this point in the history
  • Loading branch information
ahelmy committed Jan 20, 2024
1 parent c84ec22 commit 40e2a8a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,6 @@ func passwordPage(app *fiber.App) {
if err != nil {
length = 10
}
if length > internal.MaxLength {
length = internal.MaxLength
}
isEspecial := c.FormValue("especial") == "on"
isCapital := c.FormValue("capital") == "on"
isNumberic := c.FormValue("number") == "on"
Expand All @@ -173,7 +170,7 @@ func passwordPage(app *fiber.App) {
return c.Render(Prefix+"password", newMap(map[string]any{
"Title": "Password Generator",
"Password": password,
"length": length,
"length": len(password),
"MaxLength": internal.MaxLength,
"especial": especial,
"capital": capital,
Expand Down

0 comments on commit 40e2a8a

Please sign in to comment.