1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-11-01 19:07:38 +01:00
unleash.unleash/src/lib/db
Nuno Góis c0bcc50b28
fix: add confirmation to disable password login (#3829)
https://linear.app/unleash/issue/2-1071/prevent-users-from-disabling-password-authentication-when-there-are-no

Improves the behavior of disabling password based login by adding some
relevant information and a confirmation dialog with a warning. This felt
better than trying to disable the toggle, by still allowing the end
users to make the decision, except now it should be a properly informed
decision with confirmation.


![image](https://github.com/Unleash/unleash/assets/14320932/2ca754d8-cfa2-4fda-984d-0c34b89750f3)

- **Password based administrators**: Admin accounts that have a password
set;
- **Other administrators**: Other admin users that do not have a
password. May be SSO, but may also be users that did not set a password
yet;
- **Admin service accounts**: Service accounts that have the admin root
role. Depending on how you're using the SA this may not necessarily mean
locking yourself out of an admin account, especially if you secured its
token beforehand;
- **Admin API tokens**: Similar to the above. If you secured an admin
API token beforehand, you still have access to all features through the
API;

Each one of them link to the respective page inside Unleash (e.g. users
page, service accounts page, tokens page...);

If you try to disable and press "save", and only in that scenario, you
are presented with the following confirmation dialog:


![image](https://github.com/Unleash/unleash/assets/14320932/5ad6d105-ad47-4d31-a1df-04737aed4e00)
2023-05-23 15:56:34 +01:00
..
access-store.ts feat: root roles from groups (#3559) 2023-04-20 12:29:30 +02:00
account-store.ts fix: add confirmation to disable password login (#3829) 2023-05-23 15:56:34 +01:00
addon-store.ts OpenAPI: addon operations (#3421) 2023-04-18 10:50:34 +00:00
api-token-store.ts chore: add another migration that remigrates the proper way (#3719) 2023-05-11 15:33:04 +02:00
client-applications-store.ts feat: allow every store to participate in transaction (#3016) 2023-01-30 09:02:44 +01:00
client-instance-store.ts Remove timeout from store (#3018) 2023-01-30 12:01:44 +01:00
client-metrics-store-v2.ts feat: metrics for variants (#3685) 2023-05-05 11:10:54 +03:00
context-field-store.ts fix: correct error for missing context field (#3647) 2023-04-28 09:21:32 +00:00
db-pool.ts feat: add "application_name" as an optional DB option #1170 (#1478) 2022-04-07 20:55:56 +02:00
db.ts feat: allow every store to participate in transaction (#3016) 2023-01-30 09:02:44 +01:00
environment-store.ts Feat: default strategy UI (#3682) 2023-05-05 14:32:44 +03:00
event-store.test.ts feat: add event search endpoint (#1893) 2022-08-09 16:14:50 +02:00
event-store.ts fix: compilation issues from event-store (#3568) 2023-04-20 11:37:38 +02:00
favorite-features-store.ts feat: allow every store to participate in transaction (#3016) 2023-01-30 09:02:44 +01:00
favorite-projects-store.ts feat: allow every store to participate in transaction (#3016) 2023-01-30 09:02:44 +01:00
feature-environment-store.ts export queries use order by feature name (#3051) 2023-02-06 15:46:25 +01:00
feature-strategy-store.ts fix: set feature.enabled to false when all strategies are deactivated (#3655) 2023-05-02 21:33:14 +03:00
feature-tag-store.ts fix: fix bulk removal of tags (#3651) 2023-04-28 14:49:34 +03:00
feature-toggle-client-store.ts Feat: enable toggle dialog (#3686) 2023-05-08 11:42:26 +03:00
feature-toggle-store.ts feat: save memory on reading stats (#3472) 2023-04-06 15:34:08 +02:00
feature-type-store.ts feat: Create project service di (#3326) 2023-03-15 16:46:41 +01:00
group-store.ts fix: block adding a root role to a group with a project role (#3775) 2023-05-16 12:11:32 +02:00
index.ts feat: metrics for variants (#3685) 2023-05-05 11:10:54 +03:00
pat-store.ts feat: allow every store to participate in transaction (#3016) 2023-01-30 09:02:44 +01:00
project-stats-store.ts refactor: switching to new stats calculations (#3477) 2023-04-10 09:50:39 +02:00
project-store.ts Feat: project default strategy (#3644) 2023-04-28 14:59:04 +03:00
public-signup-token-store.ts feat: allow every store to participate in transaction (#3016) 2023-01-30 09:02:44 +01:00
reset-token-store.ts feat: allow every store to participate in transaction (#3016) 2023-01-30 09:02:44 +01:00
role-store.ts feat: allow every store to participate in transaction (#3016) 2023-01-30 09:02:44 +01:00
segment-store.ts fix: assume undefined instead of null on segment project (#3304) 2023-03-13 10:25:48 +00:00
session-store.ts feat: allow every store to participate in transaction (#3016) 2023-01-30 09:02:44 +01:00
setting-store.ts feat: allow every store to participate in transaction (#3016) 2023-01-30 09:02:44 +01:00
strategy-store.ts feat: add title to strategy (#3510) 2023-04-18 08:59:02 +02:00
tag-store.ts feat: allow every store to participate in transaction (#3016) 2023-01-30 09:02:44 +01:00
tag-type-store.ts feat: allow every store to participate in transaction (#3016) 2023-01-30 09:02:44 +01:00
transaction.ts feat: oss import (#3123) 2023-02-16 08:08:51 +01:00
user-feedback-store.ts feat: allow every store to participate in transaction (#3016) 2023-01-30 09:02:44 +01:00
user-splash-store.ts feat: allow every store to participate in transaction (#3016) 2023-01-30 09:02:44 +01:00
user-store.ts feat: allow every store to participate in transaction (#3016) 2023-01-30 09:02:44 +01:00