Merge pull request #1340 from Tom-Hubrecht/hashed-pwd

user: Allow changing the hashed password directly
This commit is contained in:
Philipp C. Heckel
2025-05-24 09:10:02 -04:00
committed by GitHub
11 changed files with 144 additions and 107 deletions

View File

@@ -60,7 +60,7 @@ func (s *Server) handleUsersAdd(w http.ResponseWriter, r *http.Request, v *visit
return err
}
}
if err := s.userManager.AddUser(req.Username, req.Password, user.RoleUser); err != nil {
if err := s.userManager.AddUser(req.Username, req.Password, user.RoleUser, false); err != nil {
return err
}
if tier != nil {