about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/http.go3
1 files changed, 3 insertions, 0 deletions
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)
 }