browsertrix/frontend
Ilya Kreymer b061a39d5f
Handle registration when user already exists (#1744)
Fixes https://github.com/webrecorder/browsertrix/issues/1743

On the backend, support adding user to new org and improved error
messaging:
- if user exists is not part of the org to be added to, add user to the
registration org, return 201
- if user is already part of the org, return 400 with
'user_already_is_org_member' error
- if user is not being added to a new org but already exists, return
'user_already_exists'

frontend:
- if user user same password, they will just be logged in and added to
registration org (same as before)
- if user uses wrong password, show alert message
- handle both user_already_is_org_member and user_already_registered
with alert message and link to log-in page.

note: this means existing user is added to the registration org even if
they provide wrong password, but they won't be able
to login until they use correct password/reset/etc...
2024-04-24 16:40:25 +02:00
..
.husky Run frontend formatter on pre-commit hook (#461) 2023-01-12 14:04:15 -08:00
config Initial QA Review UI! (#1624) 2024-04-04 15:09:52 -07:00
patches Fix attribute casing & lit-analyzer issues (#1429) 2023-12-11 12:34:03 -05:00
scripts Add ESLint rules for import ordering (#1608) 2024-03-18 21:50:02 -04:00
src Handle registration when user already exists (#1744) 2024-04-24 16:40:25 +02:00
tests Add ESLint rules for import ordering (#1608) 2024-03-18 21:50:02 -04:00
xliff Add Repository Index + Chart Rename + Docs Rename (#1708) 2024-04-21 09:42:25 -07:00
.dockerignore Optimizing Frontend Dockerfile (#60) 2021-12-05 18:39:45 -08:00
.editorconfig chore: add editorconfig in frontend 2023-02-24 13:04:11 -08:00
.eslintrc.js Fix missing page component imports (#1610) 2024-03-18 20:55:35 -07:00
.gitignore CI: Add Playwright UI e2e tests + CI (#614) 2023-03-22 16:23:22 -07:00
.prettierignore Ensure linting & formatting runs in CI (#1512) 2024-01-31 18:25:44 -05:00
.vscode add vscode config symlink in frontend dir 2023-11-20 16:56:48 -05:00
00-browsertrix-nginx-init.sh
Dockerfile Fix failing Webpack build 2024-04-10 14:40:44 -04:00
frontend.conf.template quickfix: nginx: have nginx serve the fallback index.html with a 200 instead of a 404 (#1742) 2024-04-24 07:09:08 +02:00
index.d.ts enable a few more useful eslint suggestions & correct some more types (#1517) 2024-02-09 16:14:08 -08:00
lit-localize.json
minio.conf Local Deployment Work: Support running locally + test cluster on CI (#396) 2022-12-02 19:58:34 -08:00
package.json version: 1.10.0-beta.3 2024-04-24 15:45:17 +02:00
playwright.config.ts
postcss.config.js Org settings layout fix + misc styling & consistency improvements (#1427) 2023-12-13 17:29:35 -05:00
prettier.config.js Fix mismatch in prettier import order config (#1609) 2024-03-18 22:14:13 -04:00
README.md Update frontend local dev guide (#1073) 2023-08-15 12:03:39 -07:00
sample.env.local
tailwind.config.js QA UI: Copy updates & beta tag (#1722) 2024-04-22 20:03:55 -04:00
tsconfig.eslint.json Upgrade Prettier to 3 (#1513) 2024-01-31 20:56:17 -05:00
tsconfig.json Initial QA Review UI! (#1624) 2024-04-04 15:09:52 -07:00
web-test-runner.config.mjs Fix asset imports in tests (#1611) 2024-03-19 13:06:07 -07:00
webpack.config.js Emit eslint errors during webpack builds & during dev (#1667) 2024-04-09 17:42:31 -04:00
webpack.dev.js Emit eslint errors during webpack builds & during dev (#1667) 2024-04-09 17:42:31 -04:00
webpack.prod.js Emit eslint errors during webpack builds & during dev (#1667) 2024-04-09 17:42:31 -04:00
yarn.lock Add QA page analysis chart (#1725) 2024-04-23 10:37:22 -04:00