Skip to content

Commit

Permalink
Wire up password update with form
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Patel committed Jul 29, 2023
1 parent 93626c1 commit a8655e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions pkg/web/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ func (s *Server) RegisterRoutes(mux *http.ServeMux) {
mux.HandleFunc("/redirect", s.handleOAuthRedirect)
mux.HandleFunc("/logout", s.handleLogout)

mux.HandleFunc("/update_password", s.handleUpdatePassword)

// Create file server for assets
mux.Handle("/assets/", http.FileServer(http.FS(assets)))
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/web/templates/home.gohtml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<header>
<strong>Update Ghidra Credentials</strong>
</header>
<form>
<form action="/update_password" method="post">
<div class="grid">
<label for="hostname">
Hostname
Expand Down

0 comments on commit a8655e6

Please sign in to comment.