removed validation page

This commit is contained in:
mrfry 2023-05-04 17:49:58 +02:00
parent 48fd91e5b4
commit b008eee6f1
3 changed files with 0 additions and 66 deletions

View file

@ -3,10 +3,6 @@
"href": "/pwRequest",
"text": "Jelszó kérés"
},
"validation": {
"href": "/validation",
"text": "Validálás"
},
"ranklist": {
"href": "/ranklist",
"text": "Ranklista"

View file

@ -1,46 +0,0 @@
import React, { useEffect } from 'react'
import Header from '../components/header'
import styles from './validation.module.css'
import constants from '../constants'
function fetchValidation() {
return new Promise((resolve) => {
fetch(`${constants.apiUrl}validationtoken`, {
credentials: 'include',
})
.then((resp) => {
return resp.json()
})
.then((res) => {
resolve(res)
})
})
}
export default function Validation() {
const [token, setToken] = React.useState('')
useEffect(() => {
fetchValidation().then((res) => {
setToken(res.key)
})
}, [])
return (
<div>
<Header title={'Validálás'} />
<div className={'pageHeader'}>
<h1>Validálás</h1>
</div>
<center>
<div className={styles.descrip}>
Különböző okokból kellhet, hogy bizonyítsd hogy az oldalhoz van
hozzáférésed. Ebben az esetben ezzel a tokennel tudod:
</div>
{token && <div className={styles.tokenContainer}>{token}</div>}
</center>
</div>
)
}

View file

@ -1,16 +0,0 @@
.descrip {
color: #acabab;
font-weight: bold;
padding-top: 4%;
padding-bottom: 4%;
font-size: 20px;
}
.tokenContainer {
font-family: 'Courier New', Courier, monospace;
text-align: center;
font-size: 24px;
color: white;
padding: 20px;
font-weight: bold;
}