|
|
|
err = db.AddAccountRecord(uuid, request.Username, argon2.IDKey([]byte(request.Password), salt, argonTime, argonMemory, argonThreads, argonKeyLength), salt)
|
|
|
|
err = db.AddAccountRecord(uuid, request.Username, argon2.IDKey([]byte(request.Password), salt, argonTime, argonMemory, argonThreads, argonKeyLength), salt)
|
|
|
|
http.Error(w, "failed to add account record", http.StatusInternalServerError)
|
|
|
|
http.Error(w, fmt.Sprintf("failed to add account record: %s", err), http.StatusInternalServerError)
|