aboutsummaryrefslogtreecommitdiff
path: root/hotline/server.go
diff options
context:
space:
mode:
authorJeff Halter <868228+jhalter@users.noreply.github.com>2022-06-02 15:22:11 -0700
committerJeff Halter <868228+jhalter@users.noreply.github.com>2022-06-02 15:22:11 -0700
commit481631f6b541a0f00c7c3ba789c13ac934bdefbc (patch)
tree7e672f439c1d9a93f68493d5da624e17bd0ce654 /hotline/server.go
parent5ae5087660f0855087a2a65181d000d4383a45f4 (diff)
Cleanup and backfill tests
Diffstat (limited to 'hotline/server.go')
-rw-r--r--hotline/server.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/hotline/server.go b/hotline/server.go
index 067cf9f..b0ddf2d 100644
--- a/hotline/server.go
+++ b/hotline/server.go
@@ -355,7 +355,7 @@ func (s *Server) NewUser(login, name, password string, access []byte) error {
}
s.Accounts[login] = &account
- return ioutil.WriteFile(s.ConfigDir+"Users/"+login+".yaml", out, 0666)
+ return FS.WriteFile(s.ConfigDir+"Users/"+login+".yaml", out, 0666)
}
// DeleteUser deletes the user account