diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-10-31 10:44:25 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-10-31 10:44:25 +0700 |
| commit | 6b221cccd58710682c99db7afbc29322da042880 (patch) | |
| tree | ef659fa4400b045a21d91d60e2eecea3ec17537e /src-migrate/common/types | |
| parent | 1602cff06e13bb03e5c48e8369abf5c803426e4d (diff) | |
- Add redirect after activation
- Add register form validation
Diffstat (limited to 'src-migrate/common/types')
| -rw-r--r-- | src-migrate/common/types/auth.ts | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src-migrate/common/types/auth.ts b/src-migrate/common/types/auth.ts index ca7b562a..5909584a 100644 --- a/src-migrate/common/types/auth.ts +++ b/src-migrate/common/types/auth.ts @@ -1,4 +1,6 @@ +import { registerSchema } from '../validations/auth'; import { OdooApiProps } from './odoo'; +import * as yup from 'yup'; export type AuthProps = { id: number; @@ -17,13 +19,7 @@ export type AuthProps = { export type AuthApiProps = OdooApiProps & { result: AuthProps }; -export type RegisterProps = { - name: string; - email: string; - password: string; - company: string; - phone: string; -}; +export type RegisterProps = yup.InferType<typeof registerSchema>; export type RegisterResApiProps = { register: boolean; |
