mirror of
https://gitlab.com/MrFry/qmining-page
synced 2025-04-01 20:23:44 +02:00
removed validation page
This commit is contained in:
parent
48fd91e5b4
commit
b008eee6f1
3 changed files with 0 additions and 66 deletions
|
@ -3,10 +3,6 @@
|
||||||
"href": "/pwRequest",
|
"href": "/pwRequest",
|
||||||
"text": "Jelszó kérés"
|
"text": "Jelszó kérés"
|
||||||
},
|
},
|
||||||
"validation": {
|
|
||||||
"href": "/validation",
|
|
||||||
"text": "Validálás"
|
|
||||||
},
|
|
||||||
"ranklist": {
|
"ranklist": {
|
||||||
"href": "/ranklist",
|
"href": "/ranklist",
|
||||||
"text": "Ranklista"
|
"text": "Ranklista"
|
||||||
|
|
|
@ -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>
|
|
||||||
)
|
|
||||||
}
|
|
|
@ -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;
|
|
||||||
}
|
|
Loading…
Add table
Add a link
Reference in a new issue