From 6d19d19566cf3b6d321342e1ec8fb7d9a57774d4 Mon Sep 17 00:00:00 2001 From: Tovi Jaeschke-Rogers Date: Sat, 5 Nov 2022 00:32:12 +1030 Subject: [PATCH] Update signup to not store symmetric key --- Backend/Api/Auth/Signup.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Backend/Api/Auth/Signup.go b/Backend/Api/Auth/Signup.go index 44674a2..0e9e80e 100644 --- a/Backend/Api/Auth/Signup.go +++ b/Backend/Api/Auth/Signup.go @@ -13,7 +13,6 @@ type signup struct { ConfirmPassword string `json:"confirm_password"` PublicKey string `json:"asymmetric_public_key"` PrivateKey string `json:"asymmetric_private_key"` - SymmetricKey string `json:"symmetric_key"` } // Signup to the platform @@ -33,8 +32,7 @@ func Signup(w http.ResponseWriter, r *http.Request) { user.Password == "" || user.ConfirmPassword == "" || len(user.AsymmetricPrivateKey) == 0 || - len(user.AsymmetricPublicKey) == 0 || - len(user.SymmetricKey) == 0 { + len(user.AsymmetricPublicKey) == 0 { http.Error(w, "Invalid Data", http.StatusUnprocessableEntity) return