diff --git a/ui/src/ForgotPassword.tsx b/ui/src/ForgotPassword.tsx index bd7a1bdf..983d64f4 100644 --- a/ui/src/ForgotPassword.tsx +++ b/ui/src/ForgotPassword.tsx @@ -1,4 +1,4 @@ -import {Box, Button, Container, TextField, Typography} from "@mui/material"; +import {Box, Button, Container, Paper, TextField, Typography} from "@mui/material"; import zrokLogo from "./assets/zrok-1.0.0-rocket-purple.svg"; import {Link} from "react-router"; import {AccountApi} from "./api"; @@ -51,22 +51,24 @@ const ForgotPasswordForm = ({ doRequest }: ForgotPasswordFormProps) => { const RequestSubmittedMessage = () => { return ( - -

Request Submitted...

- -

- If your email address is found, you will be sent an email with a link to reset your password. -

-
- -

- Please check your "spam" folder for this email if you do not receive it after a few minutes! -

-
- - Return to Login + + +

Request Submitted...

+ +

+ If your email address is found, you will be sent an email with a link to reset your password. +

+
+ +

+ Please check your "spam" folder for this email if you do not receive it after a few minutes! +

+
+ + Return to Login +
-
+ ); } diff --git a/ui/src/Register.tsx b/ui/src/Register.tsx index 2bcca4bd..47223df9 100644 --- a/ui/src/Register.tsx +++ b/ui/src/Register.tsx @@ -1,4 +1,4 @@ -import {Box, Button, Checkbox, Container, FormControlLabel, Grid2, TextField, Typography} from "@mui/material"; +import {Box, Button, Checkbox, Container, FormControlLabel, Grid2, Paper, TextField, Typography} from "@mui/material"; import zrokLogo from "./assets/zrok-1.0.0-rocket-purple.svg"; import {useParams} from "react-router"; import {useFormik} from "formik"; @@ -95,83 +95,87 @@ interface RegistrationCompleteProps { const RegistrationComplete = ({ token }: RegistrationCompleteProps) => { return ( - - - - -

Registration completed!

-
-
-
- - - - Your account was created successfully! - - - - - Your new account token is: {token} - - - - - You can create an environment using your account token, like this: - - - - - $ zrok enable {token} - - - - - Your account token is a secret (like a password). - Please do not share it with anyone! - - - - - You can use your new password to log into the console here: - - - - - {window.location.origin} - - - - -

Enjoy zrok!

-
-
-
-
+ + + + + +

Registration completed!

+
+
+
+ + + + Your account was created successfully! + + + + + Your new account token is: {token} + + + + + You can create an environment using your account token, like this: + + + + + $ zrok enable {token} + + + + + Your account token is a secret (like a password). + Please do not share it with anyone! + + + + + You can use your new password to log into the console here: + + + + + {window.location.origin} + + + + +

Enjoy zrok!

+
+
+
+
+
); } const InvalidToken = () => { return ( - - - -

Invalid registration token?!

-
-
- - - - Your registration token may have expired! - - - - - Please use the zrok invite command to - generate a new registration request and try again. - - - -
+ + + + +

Invalid registration token?!

+
+
+ + + + Your registration token may have expired! + + + + + Please use the zrok invite command to + generate a new registration request and try again. + + + +
+
); } @@ -183,7 +187,7 @@ const Register = () => { const [touLink, setTouLink] = useState(); const doRegistration = (v) => { - new AccountApi().register({body: {token: regToken, password: v.password}}) + new AccountApi().register({body: {registerToken: regToken, password: v.password}}) .then(d => { console.log(d); setComponent(); @@ -195,7 +199,7 @@ const Register = () => { useEffect(() => { if(regToken) { - new AccountApi().verify({body: {registrationToken: regToken}}) + new AccountApi().verify({body: {registerToken: regToken}}) .then((d) => { console.log(d); setEmail(d.email);