Skip to content

Commit

Permalink
Fix link and sanitation for changepassword (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
NotAProton authored Dec 6, 2021
1 parent 7f6eb00 commit b2989f9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/adminHandlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func adminChangePassword(w http.ResponseWriter, r *http.Request) {
return
}

sanitize(&input.Username, &input.OldPassword, &input.NewPassword)
sanitize(&input.Username)

exists, hashedpassword := dbAdminCredsQuery(input.Username)
if !exists {
Expand Down
2 changes: 1 addition & 1 deletion src/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const (
)

var (
version string = "1.2.2"
version string = "1.3.2"
reg *regexp.Regexp
regForHTTP *regexp.Regexp
)
Expand Down
2 changes: 1 addition & 1 deletion src/static/admin/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

</head>
<body>
<nav><span id="left-nav"><b>FastForward Admin Panel</b></span> <span id="right-nav"> Logged in as <i><span id="username-span"></span></i><br> <a href="/html/">Change Password</a> </span></nav> <br>
<nav><span id="left-nav"><b>FastForward Admin Panel</b></span> <span id="right-nav"> Logged in as <i><span id="username-span"></span></i><br> <a href="changepassword/">Change Password</a> </span></nav> <br>

<main>
<span id="status"></span>
Expand Down

0 comments on commit b2989f9

Please sign in to comment.