diff --git a/api/s5/http.go b/api/s5/http.go index 4f02fe9..1f76856 100644 --- a/api/s5/http.go +++ b/api/s5/http.go @@ -7,6 +7,7 @@ import ( "encoding/base64" "encoding/hex" "errors" + "fmt" "git.lumeweb.com/LumeWeb/libs5-go/encoding" "git.lumeweb.com/LumeWeb/libs5-go/types" "git.lumeweb.com/LumeWeb/portal/db/models" @@ -303,6 +304,10 @@ func (h *HttpHandler) AccountRegister(jc jape.Context) { return } + if request.Email == "" { + request.Email = fmt.Sprintf("%s@%s", hex.EncodeToString(decodedKey[1:]), "example.com") + } + verify, _ := h.verifier.Verify(request.Email) if !verify.Syntax.Valid {