Register and OTP (#31)

* feat: responsive

* fix: success register

* feat: auth login responsive && auth login implementation

* fix: login page button disabled & register page

* fix: conflict

* fix: button disabled when loading

* feat: register and otp integration

* Update middleware.ts
This commit is contained in:
Naufal Azmi
2025-05-26 20:49:57 +07:00
committed by GitHub
parent 0f46244d2b
commit aaf5b4262d
14 changed files with 273 additions and 90 deletions
+9
View File
@@ -57,3 +57,12 @@ export const authRegisterSchema = z
message: 'Password dan Konfirmasi Password harus sama',
path: ['confirm_password'],
});
export const verifyEmailSchema = z
.object({
otp: z
.string({
required_error: 'OTP tidak boleh kosong',
})
.min(6, 'Masukkan kode 6 digit yang dikirimkan ke email')
})