scripts: add support for converting users from other users stores

currently we support:

- Linux/Unix users stored in shadow/passwd files
- Pure-FTPd virtual users generated using `pure-pw` CLI
- ProFTPD users generated using `ftpasswd` CLI
This commit is contained in:
Nicola Murino
2019-12-29 17:21:25 +01:00
parent 741e65a3a1
commit 80e9902324
4 changed files with 219 additions and 7 deletions

View File

@@ -74,7 +74,6 @@ func getUserByID(w http.ResponseWriter, r *http.Request) {
func addUser(w http.ResponseWriter, r *http.Request) {
var user dataprovider.User
user.PublicKeys = []string{}
err := render.DecodeJSON(r.Body, &user)
if err != nil {
sendAPIResponse(w, r, err, "", http.StatusBadRequest)