From 60dc2c6e6b9e13ebf500390df95f174d7174e967 Mon Sep 17 00:00:00 2001 From: Michael Quigley Date: Wed, 21 Sep 2022 14:33:27 -0400 Subject: [PATCH] registration streamlining (#50) --- cmd/zrok/create.go | 7 ++++--- ui/src/Register.js | 11 +++++++++-- ui/src/index.css | 4 ++++ 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/cmd/zrok/create.go b/cmd/zrok/create.go index dc9e6f92..7c8e348b 100644 --- a/cmd/zrok/create.go +++ b/cmd/zrok/create.go @@ -1,10 +1,10 @@ package main import ( + "fmt" "github.com/openziti-test-kitchen/zrok/rest_client_zrok/identity" "github.com/openziti-test-kitchen/zrok/rest_model_zrok" "github.com/openziti/foundation/v2/term" - "github.com/sirupsen/logrus" "github.com/spf13/cobra" ) @@ -43,7 +43,7 @@ func (cmd *createAccountCommand) run(_ *cobra.Command, _ []string) { panic(err) } if confirm != email { - panic("email mismatch") + fmt.Println("entered emails do not match... aborting!") } zrok, err := newZrokClient() @@ -58,5 +58,6 @@ func (cmd *createAccountCommand) run(_ *cobra.Command, _ []string) { if err != nil { panic(err) } - logrus.Infof("account request submitted") + + fmt.Printf("registration invitation sent to '%v'!\n", email) } diff --git a/ui/src/Register.js b/ui/src/Register.js index bfb67f8a..ec6b714d 100644 --- a/ui/src/Register.js +++ b/ui/src/Register.js @@ -73,8 +73,15 @@ const Success = (props) => { return (
-

Welcome to zrok, {props.email}!

-
{props.token}
+

Welcome to zrok!

+ +

You can proceed to the zrok web portal and log in with your email and password.

+ +

To enable your shell for zrok, use this command:

+ +
+                $ zrok enable {props.token}
+            
) } diff --git a/ui/src/index.css b/ui/src/index.css index af154da9..c43a2a6f 100644 --- a/ui/src/index.css +++ b/ui/src/index.css @@ -56,6 +56,10 @@ h1, h2, h3, h4, h5, h6 { width: 300px; float: left; } +.fullscreen p a { + color: white; + font-weight: bold; +} .header { background-color: #3b2693;