browsertrix/frontend/src
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
..
__generated__ Add Repository Index + Chart Rename + Docs Rename (#1708) 2024-04-21 09:42:25 -07:00
__mocks__ Fix asset imports in tests (#1611) 2024-03-19 13:06:07 -07:00
assets Frontend: App Branding! (#1592) 2024-04-17 23:40:02 -04:00
classes Add ESLint rules for import ordering (#1608) 2024-03-18 21:50:02 -04:00
components Add QA page analysis chart (#1725) 2024-04-23 10:37:22 -04:00
controllers Initial QA Review UI! (#1624) 2024-04-04 15:09:52 -07:00
features Handle registration when user already exists (#1744) 2024-04-24 16:40:25 +02:00
pages Redirect if org with slug doesn't exist (#1740) 2024-04-24 04:50:55 -04:00
types Add QA columns to archived item list (#1683) 2024-04-22 13:19:07 -07:00
utils Fix QA review comments (#1723) 2024-04-23 16:31:52 -04:00
index.ejs Frontend: App Branding! (#1592) 2024-04-17 23:40:02 -04:00
index.test.ts Add ESLint rules for import ordering (#1608) 2024-03-18 21:50:02 -04:00
index.ts Add Repository Index + Chart Rename + Docs Rename (#1708) 2024-04-21 09:42:25 -07:00
manifest.webmanifest Adds favicons! (#1584) 2024-03-16 15:11:31 -07:00
replayWebPage.d.ts
routes.ts Add new WIP QA Review page (#1500) 2024-02-20 00:26:38 -08:00
shoelace.ts Add QA columns to archived item list (#1683) 2024-04-22 13:19:07 -07:00
styles.css
theme.stylesheet.css Initial QA Review UI! (#1624) 2024-04-04 15:09:52 -07:00
theme.ts ESLint improvements & Typescript upgrade (#1501) 2024-01-31 14:42:06 -05:00