From e67df19dfa7ffa652cd0029b19cb7ef382c3f4d7 Mon Sep 17 00:00:00 2001 From: Emile Date: Mon, 7 Oct 2019 15:38:56 +0200 Subject: spawn a container on registration --- src/http.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/http.go b/src/http.go index 5ed4957..3032378 100644 --- a/src/http.go +++ b/src/http.go @@ -63,6 +63,9 @@ func registerPostHandler(w http.ResponseWriter, r *http.Request) { accesscode := newAccessCode() log.Printf("Generated a new AccessCode for user %s: %s", username, accesscode) + // generate a new companion + spawnCompanion(username, accesscode) + // redirect the user to the front page http.Redirect(w, r, "/", http.StatusTemporaryRedirect) } -- cgit 1.4.1