Fix server

This commit is contained in:
2024-09-21 10:07:26 +08:00
parent 56548b4258
commit 008bba9fe5
17 changed files with 24 additions and 15 deletions

View File

@@ -47,7 +47,10 @@ export default function Register({ dataOtp }: { dataOtp: any }) {
if (body.username.length < 5) return null;
if (_.values(body.username).includes(" ")) return null;
const res = await Auth_funRegister({data: body, HIPMI_PWD: GlobalEnv.value?.WIBU_PWD as string});
const res = await Auth_funRegister({
data: body,
HIPMI_PWD: GlobalEnv.value?.WIBU_PWD as string,
});
if (res.status === 200) {
await auth_funDeleteAktivasiKodeOtpById(dataOtp.id).then((val) => {
if (val.status === 200) {
@@ -70,7 +73,6 @@ export default function Register({ dataOtp }: { dataOtp: any }) {
<Stack h={"100%"} align="center" justify="center" spacing={70}>
<Title order={2} c={MainColor.yellow}>
REGISTRASI
{GlobalEnv.value?.DATABASE_URL}
</Title>
<IconUserCircle size={100} color="white" />