Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Jrohy committed Mar 29, 2020
1 parent 37522c2 commit 65e7294
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func init() {
func updateUser(c *gin.Context) {
responseBody := controller.ResponseBody{Msg: "success"}
defer controller.TimeCost(time.Now(), &responseBody)
username := c.PostForm("username")
username := c.DefaultPostForm("username", "admin")
pass := c.PostForm("password")
err := core.SetValue(fmt.Sprintf("%s_pass", username), pass)
if err != nil {
Expand Down

0 comments on commit 65e7294

Please sign in to comment.