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:
@@ -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')
|
||||
})
|
||||
Reference in New Issue
Block a user