mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 14:50:55 +03:00
try to improve web client credentials page
I should do the same for the admin page too
This commit is contained in:
@@ -370,9 +370,7 @@ func handleWebClientManageKeysPost(w http.ResponseWriter, r *http.Request) {
|
||||
renderCredentialsPage(w, r, "", err.Error())
|
||||
return
|
||||
}
|
||||
publicKeysFormValue := r.Form.Get("public_keys")
|
||||
publicKeys := getSliceFromDelimitedValues(publicKeysFormValue, "\n")
|
||||
user.PublicKeys = publicKeys
|
||||
user.PublicKeys = r.Form["public_keys"]
|
||||
err = dataprovider.UpdateUser(&user)
|
||||
if err != nil {
|
||||
renderCredentialsPage(w, r, "", err.Error())
|
||||
|
||||
Reference in New Issue
Block a user