mirror of
https://github.com/minio/minio.git
synced 2024-12-26 07:05:55 -05:00
Append to Users list
This commit is contained in:
parent
b3b73ff4cb
commit
95f214c99b
@ -77,6 +77,13 @@ func (web *webUiApi) accessHandler(w http.ResponseWriter, req *http.Request) {
|
||||
}
|
||||
user.SecretKey = string(secretkey)
|
||||
|
||||
err = web.conf.ReadConfig()
|
||||
if err != nil {
|
||||
w.WriteHeader(http.StatusInternalServerError)
|
||||
w.Write([]byte(err.Error()))
|
||||
return
|
||||
}
|
||||
|
||||
web.conf.AddUser(user)
|
||||
err = web.conf.WriteConfig()
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user