Hide 2FA link in org and hide non functional 2FA buttons

This commit is contained in:
BlackDex 2019-01-07 17:28:32 +01:00
parent 3f7b5c18e9
commit e122913319

View file

@ -1,3 +1,4 @@
index 90aad7df..95ceff61 100644
--- a/src/app/services/services.module.ts --- a/src/app/services/services.module.ts
+++ b/src/app/services/services.module.ts +++ b/src/app/services/services.module.ts
@@ -120,20 +120,16 @@ const notificationsService = new NotificationsService(userService, syncService, @@ -120,20 +120,16 @@ const notificationsService = new NotificationsService(userService, syncService,
@ -25,15 +26,25 @@
apiService.setUrls({ apiService.setUrls({
base: isDev ? null : window.location.origin, base: isDev ? null : window.location.origin,
api: isDev ? 'http://localhost:4000' : null, api: isDev ? 'http://localhost:4000' : null,
index 5c114af5..70e7cb12 100644
--- a/src/scss/styles.scss --- a/src/scss/styles.scss
+++ b/src/scss/styles.scss +++ b/src/scss/styles.scss
@@ -1,5 +1,14 @@ @@ -1,5 +1,23 @@
@import "../css/webfonts.css"; @import "../css/webfonts.css";
+/**** START Bitwarden_RS CHANGES ****/ +/**** START Bitwarden_RS CHANGES ****/
+/* Hide any link pointing to billing */ +/* Hide any link pointing to billing */
+a[href$="/settings/billing"] {display: none !important; } +a[href$="/settings/billing"] {display: none !important; }
+ +
+/* Hide Two-Factor menu in Organization settings */
+app-org-settings a[href$="/settings/two-factor"] { display: none !important; }
+
+/* Hide 2FA Duo button */
+ul.list-group.list-group-2fa > li:nth-child(3) button { display: none !important; }
+
+/* Hide 2FA Email button */
+ul.list-group.list-group-2fa > li:nth-child(5) button { display: none !important; }
+
+/* Hide organization plans */ +/* Hide organization plans */
+app-create-organization > form > div.form-check { display: none !important; } +app-create-organization > form > div.form-check { display: none !important; }
+app-create-organization > form > h2.mt-5 { display: none !important; } +app-create-organization > form > h2.mt-5 { display: none !important; }