mirror of
https://github.com/pgsty/minio.git
synced 2026-07-23 14:10:25 +03:00
Append to Users list
This commit is contained in:
@@ -77,6 +77,13 @@ func (web *webUiApi) accessHandler(w http.ResponseWriter, req *http.Request) {
|
|||||||
}
|
}
|
||||||
user.SecretKey = string(secretkey)
|
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)
|
web.conf.AddUser(user)
|
||||||
err = web.conf.WriteConfig()
|
err = web.conf.WriteConfig()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user