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
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"fmt"
|
||||||
"github.com/openziti-test-kitchen/zrok/rest_client_zrok/identity"
|
"github.com/openziti-test-kitchen/zrok/rest_client_zrok/identity"
|
||||||
"github.com/openziti-test-kitchen/zrok/rest_model_zrok"
|
"github.com/openziti-test-kitchen/zrok/rest_model_zrok"
|
||||||
"github.com/openziti/foundation/v2/term"
|
"github.com/openziti/foundation/v2/term"
|
||||||
"github.com/sirupsen/logrus"
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -43,7 +43,7 @@ func (cmd *createAccountCommand) run(_ *cobra.Command, _ []string) {
|
|||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
if confirm != email {
|
if confirm != email {
|
||||||
panic("email mismatch")
|
fmt.Println("entered emails do not match... aborting!")
|
||||||
}
|
}
|
||||||
|
|
||||||
zrok, err := newZrokClient()
|
zrok, err := newZrokClient()
|
||||||
@ -58,5 +58,6 @@ func (cmd *createAccountCommand) run(_ *cobra.Command, _ []string) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
logrus.Infof("account request submitted")
|
|
||||||
|
fmt.Printf("registration invitation sent to '%v'!\n", email)
|
||||||
}
|
}
|
||||||
|
@ -73,8 +73,15 @@ const Success = (props) => {
|
|||||||
return (
|
return (
|
||||||
<div className={"fullscreen"}>
|
<div className={"fullscreen"}>
|
||||||
<img src={"/ziggy.svg"} width={200}/>
|
<img src={"/ziggy.svg"} width={200}/>
|
||||||
<h1>Welcome to zrok, {props.email}!</h1>
|
<h1>Welcome to zrok!</h1>
|
||||||
<pre>{props.token}</pre>
|
|
||||||
|
<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>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -56,6 +56,10 @@ h1, h2, h3, h4, h5, h6 {
|
|||||||
width: 300px;
|
width: 300px;
|
||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
|
.fullscreen p a {
|
||||||
|
color: white;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
.header {
|
.header {
|
||||||
background-color: #3b2693;
|
background-color: #3b2693;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user