Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions http/http_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,12 @@ func (httpSvc *HttpService) startHandler(c echo.Context) error {
})
}

if !httpSvc.cfg.CheckUnlockPassword(startRequest.UnlockPassword) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Internally it also checks, is this to return a better error message?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, instant feedback + no need to call node start

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: we could do the same with the Wails version. But I don't think it's that important.

Thanks!

return c.JSON(http.StatusUnauthorized, ErrorResponse{
Message: "Invalid password",
})
}

token, err := httpSvc.createJWT(nil)

if err != nil {
Expand Down
Loading