browsertrix/backend/btrixcloud
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
..
migrations Change crawl.reviewStatus to 1-5 scale int (#1664) 2024-04-09 17:51:06 -07:00
operator Typo Fix: fix typos in setting max crawler memory (#1747) 2024-04-24 10:29:09 -04:00
__init__.py
auth.py
background_jobs.py QA Runs Initial Backend Implementation (#1586) 2024-03-20 22:42:16 -07:00
basecrawls.py Ensure QA run WACZs are deleted (#1715) 2024-04-22 18:04:09 -04:00
colls.py QA Runs Initial Backend Implementation (#1586) 2024-03-20 22:42:16 -07:00
crawlconfigs.py QA Runs Initial Backend Implementation (#1586) 2024-03-20 22:42:16 -07:00
crawlmanager.py QA Runs Initial Backend Implementation (#1586) 2024-03-20 22:42:16 -07:00
crawls.py Ensure QA run WACZs are deleted (#1715) 2024-04-22 18:04:09 -04:00
db.py Change crawl.reviewStatus to 1-5 scale int (#1664) 2024-04-09 17:51:06 -07:00
emailsender.py
invites.py
k8sapi.py Crawler pod memory padding + auto scaling (#1631) 2024-03-28 16:39:00 -07:00
main_op.py Add Repository Index + Chart Rename + Docs Rename (#1708) 2024-04-21 09:42:25 -07:00
main.py Add Repository Index + Chart Rename + Docs Rename (#1708) 2024-04-21 09:42:25 -07:00
models.py Handle registration when user already exists (#1744) 2024-04-24 16:40:25 +02:00
orgs.py Handle registration when user already exists (#1744) 2024-04-24 16:40:25 +02:00
pages.py Fix QA review comments (#1723) 2024-04-23 16:31:52 -04:00
pagination.py
profiles.py
storages.py QA Runs Initial Backend Implementation (#1586) 2024-03-20 22:42:16 -07:00
uploads.py QA Runs Initial Backend Implementation (#1586) 2024-03-20 22:42:16 -07:00
users.py Handle registration when user already exists (#1744) 2024-04-24 16:40:25 +02:00
utils.py Add additional filters to page list endpoints (#1622) 2024-03-21 21:33:07 -07:00
version.py version: 1.10.0-beta.3 2024-04-24 15:45:17 +02:00
webhooks.py QA Runs Initial Backend Implementation (#1586) 2024-03-20 22:42:16 -07:00