registration streamlining (#50)

This commit is contained in:
Michael Quigley 2022-09-21 14:33:27 -04:00
parent 5b9119f782
commit 60dc2c6e6b
No known key found for this signature in database
GPG Key ID: 9B60314A9DD20A62
3 changed files with 17 additions and 5 deletions

View File

@ -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)
}

View File

@ -73,8 +73,15 @@ const Success = (props) => {
return (
<div className={"fullscreen"}>
<img src={"/ziggy.svg"} width={200}/>
<h1>Welcome to zrok, {props.email}!</h1>
<pre>{props.token}</pre>
<h1>Welcome to zrok!</h1>
<p>You can proceed to the <a href={"/"}>zrok web portal</a> and log in with your email and password.</p>
<p>To enable your shell for zrok, use this command:</p>
<pre>
$ zrok enable {props.token}
</pre>
</div>
)
}

View File

@ -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;