cal.pub0.org/apps/web/lib
Agusti Fernandez Pardo f4fe91396f
Improve 2fa: ask for code before account removal and 2fa disabling (#3817)
* fix conflicts

* fix remove separate function and call mutation directly

* feat: add new react-otp-input to enable 2fa flow

* fix: comment out

* fix: remove next-auth 4.9.0 from yarn.lock

* fix: delete account test fill password before submit

* fix: test delete accc

* fix typo in delete acc test

* Update apps/web/components/security/EnableTwoFactorModal.tsx

Co-authored-by: Omar López <zomars@me.com>

* feat: remove react-otp-input reuse TwoFactor

* feat: add center props to TwoFactor

* fix: no v2

* feat: disable 2fa requires 2fa api

* feat: make 2fa required to disable 2fa

* fix: FormEvent instead of SyntheticEvent

* fix: types

* fix: move disable 2fa form to fully use RHF

* fix     if (e) e.preventDefault();

* feat: fix remove account

* fix: remove react-otp-input types

* fix: separate onConfirm to add to form handleSubmit

* fix: types e:SyntethicEvent

* fix: types

* fix: import packages lib not web lib

* Update apps/web/components/security/EnableTwoFactorModal.tsx

Co-authored-by: Omar López <zomars@me.com>

* Update apps/web/components/security/EnableTwoFactorModal.tsx

Co-authored-by: Omar López <zomars@me.com>

* fix: no import from web

* fix: import

* fix: remove duplicate FormEvent

* fix: upgrade ErrorCode imports

* fix profile types totpCode not optional

* fix: build pass

* fix: dont touch test delete-account

* fix: type

* fix: add data-testid to password field

* fix: conflicts w syncServices

* Build fixes

* Fixes delete account e2e test

Co-authored-by: Agusti Fernandez Pardo <git@agusti.me>
Co-authored-by: Omar López <zomars@me.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-08-31 14:57:53 -06:00
..
auth Type fixes 2022-05-17 15:32:54 -06:00
config V2 Main (#3549) 2022-08-24 14:18:42 -06:00
core Refactors EE code (#3490) 2022-07-28 13:58:26 -06:00
hooks Refactors EE code (#3490) 2022-07-28 13:58:26 -06:00
mutations/bookings Availabilty consolitadion (#3010) 2022-06-10 12:38:46 -06:00
types Workflows (#3236) 2022-07-14 00:10:45 +00:00
webhooks Migrate legacy api endpoints to tRPC II (#3865) (#3991) 2022-08-26 15:58:08 -06:00
QueryCell.tsx Adds deprecation notice to QueryCell (#3977) 2022-08-26 09:32:58 +00:00
app-providers.tsx V2 Settings - Security View (#4018) 2022-08-30 13:46:52 -06:00
asStringOrNull.tsx Refactors EE code (#3490) 2022-07-28 13:58:26 -06:00
auth.ts Improve 2fa: ask for code before account removal and 2fa disabling (#3817) 2022-08-31 14:57:53 -06:00
availability.ts Extract prisma to it's own package (#1823) 2022-02-15 13:30:52 -07:00
classNames.ts Add ui package for reusable components (#1916) 2022-02-21 09:41:25 -07:00
clock.ts Refactors EE code (#3490) 2022-07-28 13:58:26 -06:00
cropImage.ts
ensureArray.ts
getBooking.tsx save additional inputs as json + view details of booking (#2796) 2022-05-18 15:05:49 -06:00
hasKeyInMetadata.ts WIP stripe customer metedada sync (#3153) 2022-07-07 15:24:42 -06:00
isBrandingHidden.tsx
isOutOfBounds.tsx Migrates all tRPC code to a monorepo package (#3484) 2022-07-22 11:27:06 -06:00
isPrismaObj.ts WIP stripe customer metedada sync (#3153) 2022-07-07 15:24:42 -06:00
isSuccessRedirectAvailable.tsx Prisma fixes 2022-05-17 19:54:50 -06:00
jackson.ts Eslint fixes (#1898) 2022-02-18 16:53:45 +00:00
location.ts Fixes/locations (#2383) 2022-04-05 18:03:22 +00:00
parseDate.ts Refactors EE code (#3490) 2022-07-28 13:58:26 -06:00
parseZone.ts Consolidates dayjs in a single package 2022-06-28 14:48:24 -06:00
prisma.ts Admin/team billing downgrader (#2040) 2022-03-03 19:29:19 +00:00
profile.ts
random.ts App Store (#1869) 2022-03-23 15:00:30 -07:00
saml.ts Migrates all tRPC code to a monorepo package (#3484) 2022-07-22 11:27:06 -06:00
slots.ts Migrates all tRPC code to a monorepo package (#3484) 2022-07-22 11:27:06 -06:00
slugify.ts Build fixes (#1929) 2022-02-21 18:45:35 +00:00