edited labels
This commit is contained in:
@@ -81,13 +81,14 @@ export default function CreateAccount() {
|
|||||||
referrerPolicy: 'no-referrer',
|
referrerPolicy: 'no-referrer',
|
||||||
body: JSON.stringify(data)
|
body: JSON.stringify(data)
|
||||||
});
|
});
|
||||||
|
const text = await response.text()
|
||||||
|
await setStatusText(text)
|
||||||
setStatus(response.status)
|
setStatus(response.status)
|
||||||
setStatusText(response.statusText)
|
|
||||||
if (response.status == "200") {
|
if (response.status == "200") {
|
||||||
setLogin(false)
|
setTimeout(() => { setLogin(false) }, 2000)
|
||||||
}
|
}
|
||||||
setDisabled(false)
|
setDisabled(false)
|
||||||
setTimeout(() => { setStatus(null) }, 5000)
|
setTimeout(() => { setStatus(null) }, 2000)
|
||||||
}
|
}
|
||||||
const handleClick = (e) => {
|
const handleClick = (e) => {
|
||||||
if (username !== "" && password !== "") {
|
if (username !== "" && password !== "") {
|
||||||
|
|||||||
@@ -84,14 +84,16 @@ export default function Login() {
|
|||||||
referrerPolicy: 'no-referrer',
|
referrerPolicy: 'no-referrer',
|
||||||
body: JSON.stringify(data)
|
body: JSON.stringify(data)
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const text = await response.text()
|
||||||
|
await setStatusText(text)
|
||||||
setStatus(response.status)
|
setStatus(response.status)
|
||||||
console.log(response.body.text)
|
|
||||||
setStatusText("test")
|
|
||||||
if (response.status == "200") {
|
if (response.status == "200") {
|
||||||
setLogin(false)
|
setTimeout(() => { setLogin(false) }, 2000)
|
||||||
|
|
||||||
}
|
}
|
||||||
setDisabled(false)
|
setDisabled(false)
|
||||||
setTimeout(() => { setStatus(null) }, 5000)
|
setTimeout(() => { setStatus(null) }, 2000)
|
||||||
}
|
}
|
||||||
|
|
||||||
const handleClick = (e) => {
|
const handleClick = (e) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user