mirror of
https://github.com/openziti/zrok.git
synced 2025-06-24 03:31:57 +02:00
registration streamlining (#50)
This commit is contained in:
parent
5b9119f782
commit
60dc2c6e6b
@ -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)
|
||||
}
|
||||
|
@ -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>
|
||||
)
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user