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
Agusti Fernandez Pardo
b8b1b9a6d0
fix: rate limit auth ( #3820 )
...
* fix: rate limit auth
* fix: replace lru-cache w memory-cache
* remove comments
* fix: yarn.lock
* fix: remove changes yarn lock
* fix: add missing EOL empty liune
* fix: move rate limiter so it kicks the last, limit to 10 tries per minute
* fix: move limiter w rest of code
* test: trying fix onboardong
* fix: undo changes in globalSetup.ts
* test: fix disable login for onboarding
* fix: use username instead of email for token check
* fix: tests
* fix: don't run on test
* fix: add missing comma
* fix: remove uniqueTokenPerInterval
* fix: add errorcode to packages lib auth
* Update packages/lib/rateLimit.ts
fix: improve readability
Co-authored-by: Omar López <zomars@me.com>
* Update packages/lib/rateLimit.ts
fix: no unnecessary any
Co-authored-by: Omar López <zomars@me.com>
* Update packages/lib/rateLimit.ts
fix: improve readability
Co-authored-by: Omar López <zomars@me.com>
* fix: rename interval -> intervalInMs
* fix: check user.email not username which could be empty
* fix: rateLimit update all naming
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>
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2022-08-30 13:58:35 -06:00
alannnc
b328527434
fix/auto-connect-calendar-3582 ( #3891 )
...
* Added alert when there isn't default calendar connected
* Add default calendar externalId to select placeholder
* Fix typos
* Fixes prisma import
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: zomars <zomars@me.com>
2022-08-22 19:34:28 +00:00
sean-brydon
532723fb41
Update V2 components + Move to react-icons ( #3670 )
2022-08-03 16:01:29 +00:00
Omar López
464343f5ab
Refactors EE code ( #3490 )
...
* WIP
* WIP
* Type and migration fixes
* Adds missing default import
* Fixes import
* Fixes tRPC imports in App Store
* Migrate stripe helpers
* WIP
* Type fixes
* Type fix?
* WIP
* WIP
* Update index.ts
* Fixes
* Update workflow.tsx
* Moved queries to lib
* Moves QueryCell
* Migrates MultiSelectCheckboxes
* WIP
* CryptoSection type fixes
* WIP
* Import fixes
* Build fixes
* Update app-providers.tsx
* Build fixes
* Upgrades hookform zod resolvers
* Build fixes
* Cleanup
* Build fixes
* Relocates QueryCell to ui
* Moved List and SkeletonLoader
* Revert QueryCell migration
* Can't use QueryCell here
* oops
* CryptoSection cleanup
* Update app-providers.tsx
* Moved ee to features
* ee to features/ee
* Removes @calcom/ee
* Adds possible feature locations
* Build fixes
* Migrates stripe to app-store lib
* Colocates stripe imports
* Update subscription.ts
* Submodule sync
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-07-28 13:58:26 -06:00
Omar López
bfa70dcc83
Feat/onboarding admin ( #3486 )
...
* WIP
* API and step done fallback
* Finishing up tweaks
* Inline comment
* Translations
* Update apps/web/pages/api/auth/setup.ts
Co-authored-by: Omar López <zomars@me.com>
* Update apps/web/pages/api/auth/setup.ts
Co-authored-by: Omar López <zomars@me.com>
* Update apps/web/pages/api/auth/setup.ts
Co-authored-by: Omar López <zomars@me.com>
* Update apps/web/pages/api/auth/setup.ts
Co-authored-by: Omar López <zomars@me.com>
* Linting fixes
* Update apps/web/pages/auth/setup.tsx
Co-authored-by: Omar López <zomars@me.com>
* Linting fix
* Moving to v2
* Translations
Co-authored-by: Leo Giovanetti <hello@leog.me>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-07-27 17:28:21 -06:00
Peer Richelsen
b9645b4de5
feather icons and inter ( #3366 )
2022-07-26 20:24:00 -06:00
Omar López
0a125b6900
Revert "Self-hosted onboarding first admin wizard ( #3393 )" ( #3485 )
...
This reverts commit ee14423f4c
.
2022-07-21 15:05:52 -06:00
Leo Giovanetti
ee14423f4c
Self-hosted onboarding first admin wizard ( #3393 )
...
* WIP
* API and step done fallback
* Finishing up tweaks
* Inline comment
* Translations
2022-07-21 19:29:24 +00:00
zomars
7bcc5c4548
eslint react/jsx-curly-brace-presence
2022-07-12 11:52:13 -06:00
Hariom Balhara
1469b856a6
Fix hubspot callback ( #3195 )
...
Co-authored-by: Leo Giovanetti <hello@leog.me>
2022-06-30 07:01:07 +00:00
Vladimir Klimontovich
456a4ba581
Telemetry improvements ( #2935 )
...
* next-collect initial setup
* naming changes
* WIP
* WIP: added cookie name
* telemetry update
* fixes
* telemetry eventTypes fix
* tmp jitsu config for testing
* tmp jitsu key update (for tests)
* deploy commit
* cookieName fixes
* telemetry credentials update
* NextCollect updated to latest canary; added TELEMETRY_KEY to config
* TELEMETRY_KEY fix
removed browser_user_agent field from event
* removed _middleware.ts for test deploy
* _middleware.ts restored
* next-collect version bump
* yarn.lock fix
* Added license consent property, set default telemetry endpoint
* Switched to stable version of next-collect; restored LicenseProvider accidentally deleted during merge
* Switched to stable version of next-collect; restored LicenseProvider accidentally deleted during merge
* Updated to latest version of next-collect
* - Updated to latest version of next-collect
- Few improvements in event collection: isTeamBooking for all events, page_url for all events
- Do not send second page event on re-render of /team/[slug]
* Revert booking confirmed tracking
* Applied prettier + fix lint
Co-authored-by: Art Sk <kirsan007@gmail.com>
2022-06-02 10:19:01 -06:00
Arun Kumar
7d7a1c5bbc
Fix login page CTA disabled state ( #2832 )
...
* fix(ui/login): better disabled state for login CTA
The fix involves tracking the form submission with a dedicated state `submitInProgress` with React.
`formState` from `react-hook-form` does not take time taken for the network call into account. For example,
if the api takes 5 seconds to complete, we would expect the `formState.isSubmitting` to be true for `5`
seconds. But, surprisingly this is not the case and `formState` from `react-hook-form` resolves
immediately after it makes a successful connection to the endpoint.
A dedicated state (with `useState`) is introduced that is enabled when the user clicks on the login CTA, and disabled when the api call is resolved, either successfully or with an error.
* Update login.tsx
* Update login.tsx
* Fixes isSubmitting state
Co-authored-by: zomars <zomars@me.com>
2022-05-23 17:20:35 +00:00
Leo Giovanetti
ba9be4e69d
Fix login submit ( #2849 )
2022-05-22 14:28:18 +02:00
Hariom Balhara
84967e5cdf
Add login event ( #2784 )
...
Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
2022-05-17 17:22:57 +01:00
sean-brydon
676268b62d
2FA submit disabled ( #2790 )
2022-05-17 14:15:57 +01:00
GitStart
93bd4ed79e
Sign in button should be changed or disabled after click #2654 ( #2749 )
...
Co-authored-by: gitstart <gitstart@users.noreply.github.com>
2022-05-14 07:38:56 -06:00
zomars
4922a13b68
Form warning fixes
2022-05-06 15:44:57 -06:00
Hariom Balhara
82d77dc10f
Make sure that absolute URL is of WEBAPP only ( #2624 )
2022-04-27 16:28:36 +02:00
Demian Caldelas
0390ae9ee1
Introducing Playwright Fixtures - Users Factory ( #2293 )
...
* Fix not able to logout using the logout path
* Add users fixture for e2e tests
* typo
Co-authored-by: Omar López <zomars@me.com>
2022-03-28 20:06:41 +00:00
Omar López
ec58a9dd70
The Dotenv Refactor ( #2275 )
...
* dotenv refactoring
* dotenv fixes
* Env variables cleanup
* Updates e2e variables
* Moves environment file to types
* Removes conflicting configs
* Readds missing variables
* Fixes
* More fixes
* Update .env.example
* Update yarn.lock
* Update turbo.json
* Fixes e2e
* Temp fix
* disables cache for lint
* Please work
* I'm getting desperate here.
* Matches node versions
* Take 2
* Revert "Take 2"
This reverts commit a735f47f23
.
* Update .env.example
2022-03-25 17:39:38 -07:00
Demian Caldelas
ae27601405
Fix double forward slash in auth callback ( #2197 )
...
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: Omar López <zomars@me.com>
2022-03-18 10:56:56 -07:00
Omar López
558897fe53
Migrates components and libs to packages ( #2172 )
...
* Migrates Dialog to ui package
* Migrates Alert to ui
* Migrate Button to ui
* UI and lib migrations
* Add missing imports
* Update Error.tsx
2022-03-16 16:36:43 -07:00
Bailey Pumfleet
fd6b2c57cb
Revert "Bugfix/login failure due email capitalisation ( #1884 )" ( #2143 )
...
This reverts commit 3d685eb4ae
.
2022-03-14 11:53:13 +00:00
Jonathan Ng
3d685eb4ae
Bugfix/login failure due email capitalisation ( #1884 )
...
* convert the email to lowercase
this code will prevent the email check from failing if the user email contain capitalisation.
* Updated Readme to contain warning.
* Revert "Updated Readme to contain warning."
This reverts commit c406587c73
.
Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
2022-03-14 11:45:22 +00:00
Hariom Balhara
89f86e2c84
fix redirection to 404 page on login ( #2086 )
...
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2022-03-09 14:47:02 +00:00
Agusti Fernandez
5445ca5944
Fixes callbackUrl issue in login page ( #1848 )
...
* fix: remove use of window.location in redirect of callbackUrl in Login Page
* Adds WEBSITE_URL constant to callbackUrl in login page
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2022-02-15 10:34:12 +00:00
zomars
038e8a4b7d
Runs prettier
2022-02-10 14:22:45 -07:00
zomars
0bc511a886
Migrated cal.com to apps/web
2022-02-10 14:22:45 -07:00