mirror of
https://github.com/bitwarden/web
synced 2025-12-12 06:13:28 +00:00
Compare commits
42 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b7cee309ba | ||
|
|
d886a056fa | ||
|
|
06227f27ab | ||
|
|
66391b4376 | ||
|
|
1c09629bbc | ||
|
|
e2d9498167 | ||
|
|
ec80782d8f | ||
|
|
3acee89646 | ||
|
|
589faf3608 | ||
|
|
639cc461ae | ||
|
|
4562920d30 | ||
|
|
c6f4e4de64 | ||
|
|
f323963a4e | ||
|
|
f6c8b6d8cb | ||
|
|
11f34be18e | ||
|
|
647e9555d0 | ||
|
|
ad7b6e6388 | ||
|
|
718ca197b5 | ||
|
|
338d593cd1 | ||
|
|
aa29a07678 | ||
|
|
0722522801 | ||
|
|
5731c6449b | ||
|
|
eaf083be44 | ||
|
|
8435c85c3c | ||
|
|
3d1c2dad74 | ||
|
|
2f632f7096 | ||
|
|
9b63c81b56 | ||
|
|
34cb463e94 | ||
|
|
7bbe3d7b28 | ||
|
|
0564b52f1f | ||
|
|
cb1f08d74b | ||
|
|
f3bf972d26 | ||
|
|
02256aad87 | ||
|
|
466e0c8c35 | ||
|
|
0543e76432 | ||
|
|
34527160fc | ||
|
|
f590fe5435 | ||
|
|
0f64c16c18 | ||
|
|
1632a24b1e | ||
|
|
0691af1dcd | ||
|
|
3e59617fb1 | ||
|
|
268b16ca98 |
@@ -1,6 +1,8 @@
|
|||||||
> **Archived**
|
> **Repository Reorganization in Progress**
|
||||||
>
|
>
|
||||||
> This repository is archived, please go to https://github.com/bitwarden/clients for future development.
|
> We are currently migrating some projects over to a mono repository. For existing PR's we will be providing documentation on how to move/migrate them. To minimize the overhead we are actively reviewing open PRs. If possible please ensure any pending comments are resolved as soon as possible.
|
||||||
|
>
|
||||||
|
> New pull requests created during this transition period may not get addressed —if needed, please create a new PR after the reorganization is complete.
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<img src="https://raw.githubusercontent.com/bitwarden/brand/master/screenshots/web-vault-macbook.png" alt="" width="600" height="358" />
|
<img src="https://raw.githubusercontent.com/bitwarden/brand/master/screenshots/web-vault-macbook.png" alt="" width="600" height="358" />
|
||||||
|
|||||||
@@ -22,16 +22,14 @@ const routes: Routes = [
|
|||||||
component: ManageComponent,
|
component: ManageComponent,
|
||||||
canActivate: [PermissionsGuard],
|
canActivate: [PermissionsGuard],
|
||||||
data: {
|
data: {
|
||||||
permissions: NavigationPermissionsService.getPermissions("manage"),
|
permissions: NavigationPermissionsService.getPermissions("manage").concat(
|
||||||
|
Permissions.ManageSso
|
||||||
|
),
|
||||||
},
|
},
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: "sso",
|
path: "sso",
|
||||||
component: SsoComponent,
|
component: SsoComponent,
|
||||||
canActivate: [PermissionsGuard],
|
|
||||||
data: {
|
|
||||||
permissions: [Permissions.ManageSso],
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -15,4 +15,3 @@ files:
|
|||||||
en-GB: en_GB
|
en-GB: en_GB
|
||||||
en-IN: en_IN
|
en-IN: en_IN
|
||||||
sr-CY: sr_CY
|
sr-CY: sr_CY
|
||||||
sr-CS: sr_CS
|
|
||||||
|
|||||||
2
jslib
2
jslib
Submodule jslib updated: f4066b4f58...6f117b9901
@@ -101,7 +101,7 @@
|
|||||||
<div [ngClass]="{ 'col-5': layout, 'col-12': !layout }">
|
<div [ngClass]="{ 'col-5': layout, 'col-12': !layout }">
|
||||||
<div class="row justify-content-md-center mt-5">
|
<div class="row justify-content-md-center mt-5">
|
||||||
<div [ngClass]="{ 'col-5': !layout, 'col-12': layout }">
|
<div [ngClass]="{ 'col-5': !layout, 'col-12': layout }">
|
||||||
<h1 class="lead text-center mb-4" *ngIf="!layout">{{ "createAccount" | i18n }}</h1>
|
<p class="lead text-center mb-4" *ngIf="!layout">{{ "createAccount" | i18n }}</p>
|
||||||
<div class="card d-block">
|
<div class="card d-block">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<app-callout
|
<app-callout
|
||||||
|
|||||||
@@ -46,7 +46,7 @@
|
|||||||
<bit-menu #orgPickerMenu>
|
<bit-menu #orgPickerMenu>
|
||||||
<ul aria-labelledby="pickerButton" class="tw-p-0 tw-m-0">
|
<ul aria-labelledby="pickerButton" class="tw-p-0 tw-m-0">
|
||||||
<li *ngFor="let org of organizations" class="tw-list-none tw-flex tw-flex-col" role="none">
|
<li *ngFor="let org of organizations" class="tw-list-none tw-flex tw-flex-col" role="none">
|
||||||
<a bitMenuItem [routerLink]="['/organizations', org.id]">
|
<a bit-menu-item [routerLink]="['/organizations', org.id]">
|
||||||
<i
|
<i
|
||||||
class="bwi bwi-check mr-2"
|
class="bwi bwi-check mr-2"
|
||||||
[ngClass]="org.id === activeOrganization.id ? 'visible' : 'invisible'"
|
[ngClass]="org.id === activeOrganization.id ? 'visible' : 'invisible'"
|
||||||
@@ -58,7 +58,7 @@
|
|||||||
</li>
|
</li>
|
||||||
<bit-menu-divider></bit-menu-divider>
|
<bit-menu-divider></bit-menu-divider>
|
||||||
<li class="tw-list-none" role="none">
|
<li class="tw-list-none" role="none">
|
||||||
<a bitMenuItem routerLink="/create-organization">
|
<a bit-menu-item routerLink="/create-organization">
|
||||||
<i class="bwi bwi-plus mr-2"></i>
|
<i class="bwi bwi-plus mr-2"></i>
|
||||||
{{ "newOrganization" | i18n }}</a
|
{{ "newOrganization" | i18n }}</a
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import { MessagingService } from "jslib-common/abstractions/messaging.service";
|
|||||||
@Component({
|
@Component({
|
||||||
selector: "app-premium-badge",
|
selector: "app-premium-badge",
|
||||||
template: `
|
template: `
|
||||||
<button *appNotPremium bitBadge badgeType="success" (click)="premiumRequired()">
|
<button *appNotPremium bit-badge badgeType="success" (click)="premiumRequired()">
|
||||||
{{ "premium" | i18n }}
|
{{ "premium" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
`,
|
`,
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<div class="container footer text-muted">
|
<div class="container footer text-muted">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col">© {{ year }} Bitwarden Inc.</div>
|
<div class="col">© {{ year }}, Bitwarden Inc.</div>
|
||||||
<div class="col text-center"></div>
|
<div class="col text-center"></div>
|
||||||
<div class="col text-right">
|
<div class="col text-right">
|
||||||
{{ "versionNumber" | i18n: version }}
|
{{ "versionNumber" | i18n: version }}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<router-outlet></router-outlet>
|
<router-outlet></router-outlet>
|
||||||
<div class="container my-5 text-muted text-center">
|
<div class="container my-5 text-muted text-center">
|
||||||
© {{ year }} Bitwarden Inc. <br />
|
© {{ year }}, Bitwarden Inc. <br />
|
||||||
{{ "versionNumber" | i18n: version }}
|
{{ "versionNumber" | i18n: version }}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -65,24 +65,24 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<bit-menu-divider></bit-menu-divider>
|
<bit-menu-divider></bit-menu-divider>
|
||||||
<a bitMenuItem routerLink="/settings/account">
|
<a bit-menu-item routerLink="/settings/account">
|
||||||
<i class="bwi bwi-fw bwi-user" aria-hidden="true"></i>
|
<i class="bwi bwi-fw bwi-user" aria-hidden="true"></i>
|
||||||
{{ "accountSettings" | i18n }}
|
{{ "accountSettings" | i18n }}
|
||||||
</a>
|
</a>
|
||||||
<a bitMenuItem href="https://bitwarden.com/help/" target="_blank" rel="noopener">
|
<a bit-menu-item href="https://bitwarden.com/help/" target="_blank" rel="noopener">
|
||||||
<i class="bwi bwi-fw bwi-question-circle" aria-hidden="true"></i>
|
<i class="bwi bwi-fw bwi-question-circle" aria-hidden="true"></i>
|
||||||
{{ "getHelp" | i18n }}
|
{{ "getHelp" | i18n }}
|
||||||
</a>
|
</a>
|
||||||
<a bitMenuItem href="https://bitwarden.com/download/" target="_blank" rel="noopener">
|
<a bit-menu-item href="https://bitwarden.com/download/" target="_blank" rel="noopener">
|
||||||
<i class="bwi bwi-fw bwi-download" aria-hidden="true"></i>
|
<i class="bwi bwi-fw bwi-download" aria-hidden="true"></i>
|
||||||
{{ "getApps" | i18n }}
|
{{ "getApps" | i18n }}
|
||||||
</a>
|
</a>
|
||||||
<bit-menu-divider></bit-menu-divider>
|
<bit-menu-divider></bit-menu-divider>
|
||||||
<button bitMenuItem type="button" (click)="lock()">
|
<button bit-menu-item type="button" (click)="lock()">
|
||||||
<i class="bwi bwi-fw bwi-lock" aria-hidden="true"></i>
|
<i class="bwi bwi-fw bwi-lock" aria-hidden="true"></i>
|
||||||
{{ "lockNow" | i18n }}
|
{{ "lockNow" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<button bitMenuItem type="button" (click)="logOut()">
|
<button bit-menu-item type="button" (click)="logOut()">
|
||||||
<i class="bwi bwi-fw bwi-sign-out" aria-hidden="true"></i>
|
<i class="bwi bwi-fw bwi-sign-out" aria-hidden="true"></i>
|
||||||
{{ "logOut" | i18n }}
|
{{ "logOut" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ import { BulkStatusComponent as OrgBulkStatusComponent } from "../organizations/
|
|||||||
import { CollectionAddEditComponent as OrgCollectionAddEditComponent } from "../organizations/manage/collection-add-edit.component";
|
import { CollectionAddEditComponent as OrgCollectionAddEditComponent } from "../organizations/manage/collection-add-edit.component";
|
||||||
import { CollectionsComponent as OrgManageCollectionsComponent } from "../organizations/manage/collections.component";
|
import { CollectionsComponent as OrgManageCollectionsComponent } from "../organizations/manage/collections.component";
|
||||||
import { EntityEventsComponent as OrgEntityEventsComponent } from "../organizations/manage/entity-events.component";
|
import { EntityEventsComponent as OrgEntityEventsComponent } from "../organizations/manage/entity-events.component";
|
||||||
|
import { EntityUsersComponent as OrgEntityUsersComponent } from "../organizations/manage/entity-users.component";
|
||||||
import { EventsComponent as OrgEventsComponent } from "../organizations/manage/events.component";
|
import { EventsComponent as OrgEventsComponent } from "../organizations/manage/events.component";
|
||||||
import { GroupAddEditComponent as OrgGroupAddEditComponent } from "../organizations/manage/group-add-edit.component";
|
import { GroupAddEditComponent as OrgGroupAddEditComponent } from "../organizations/manage/group-add-edit.component";
|
||||||
import { GroupsComponent as OrgGroupsComponent } from "../organizations/manage/groups.component";
|
import { GroupsComponent as OrgGroupsComponent } from "../organizations/manage/groups.component";
|
||||||
@@ -242,6 +243,7 @@ import { OrganizationBadgeModule } from "./vault/modules/organization-badge/orga
|
|||||||
OrgCollectionAddEditComponent,
|
OrgCollectionAddEditComponent,
|
||||||
OrgCollectionsComponent,
|
OrgCollectionsComponent,
|
||||||
OrgEntityEventsComponent,
|
OrgEntityEventsComponent,
|
||||||
|
OrgEntityUsersComponent,
|
||||||
OrgEventsComponent,
|
OrgEventsComponent,
|
||||||
OrgExportComponent,
|
OrgExportComponent,
|
||||||
OrgExposedPasswordsReportComponent,
|
OrgExposedPasswordsReportComponent,
|
||||||
@@ -401,6 +403,7 @@ import { OrganizationBadgeModule } from "./vault/modules/organization-badge/orga
|
|||||||
OrgCollectionAddEditComponent,
|
OrgCollectionAddEditComponent,
|
||||||
OrgCollectionsComponent,
|
OrgCollectionsComponent,
|
||||||
OrgEntityEventsComponent,
|
OrgEntityEventsComponent,
|
||||||
|
OrgEntityUsersComponent,
|
||||||
OrgEventsComponent,
|
OrgEventsComponent,
|
||||||
OrgExportComponent,
|
OrgExportComponent,
|
||||||
OrgExposedPasswordsReportComponent,
|
OrgExposedPasswordsReportComponent,
|
||||||
|
|||||||
@@ -1,13 +0,0 @@
|
|||||||
import { ScrollingModule } from "@angular/cdk/scrolling";
|
|
||||||
import { NgModule } from "@angular/core";
|
|
||||||
|
|
||||||
import { SharedModule } from "../../shared.module";
|
|
||||||
|
|
||||||
import { EntityUsersComponent } from "./entity-users.component";
|
|
||||||
|
|
||||||
@NgModule({
|
|
||||||
imports: [SharedModule, ScrollingModule],
|
|
||||||
declarations: [EntityUsersComponent],
|
|
||||||
exports: [EntityUsersComponent],
|
|
||||||
})
|
|
||||||
export class OrganizationManageModule {}
|
|
||||||
@@ -1,59 +0,0 @@
|
|||||||
<div
|
|
||||||
class="modal fade"
|
|
||||||
role="dialog"
|
|
||||||
aria-modal="true"
|
|
||||||
aria-labelledby="enrollMasterPasswordResetTitle"
|
|
||||||
>
|
|
||||||
<div class="modal-dialog modal-dialog-scrollable" role="document">
|
|
||||||
<form
|
|
||||||
class="modal-content"
|
|
||||||
#form
|
|
||||||
(ngSubmit)="submit()"
|
|
||||||
[appApiAction]="formPromise"
|
|
||||||
ngNativeValidate
|
|
||||||
>
|
|
||||||
<div class="modal-header">
|
|
||||||
<h2 class="modal-title" id="enrollMasterPasswordResetTitle">
|
|
||||||
{{ (isEnrolled ? "withdrawPasswordReset" : "enrollPasswordReset") | i18n }}
|
|
||||||
</h2>
|
|
||||||
<button
|
|
||||||
type="button"
|
|
||||||
class="close"
|
|
||||||
data-dismiss="modal"
|
|
||||||
appA11yTitle="{{ 'close' | i18n }}"
|
|
||||||
>
|
|
||||||
<span aria-hidden="true">×</span>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div class="modal-body">
|
|
||||||
<app-callout type="warning" *ngIf="!isEnrolled">
|
|
||||||
{{ "resetPasswordEnrollmentWarning" | i18n }}
|
|
||||||
</app-callout>
|
|
||||||
<app-user-verification [(ngModel)]="verification" name="secret"> </app-user-verification>
|
|
||||||
</div>
|
|
||||||
<div class="modal-footer">
|
|
||||||
<button bitButton buttonType="primary" type="submit" [disabled]="form.loading">
|
|
||||||
<i
|
|
||||||
class="bwi bwi-spinner bwi-spin"
|
|
||||||
title="{{ 'loading' | i18n }}"
|
|
||||||
*ngIf="form.loading"
|
|
||||||
></i>
|
|
||||||
<span>
|
|
||||||
{{ "submit" | i18n }}
|
|
||||||
</span>
|
|
||||||
</button>
|
|
||||||
<button
|
|
||||||
bitButton
|
|
||||||
buttonType="secondary"
|
|
||||||
type="button"
|
|
||||||
data-dismiss="modal"
|
|
||||||
appA11yTitle="{{ 'close' | i18n }}"
|
|
||||||
>
|
|
||||||
<span>
|
|
||||||
{{ "cancel" | i18n }}
|
|
||||||
</span>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@@ -1,97 +0,0 @@
|
|||||||
import { Component } from "@angular/core";
|
|
||||||
|
|
||||||
import { ModalRef } from "jslib-angular/components/modal/modal.ref";
|
|
||||||
import { ModalConfig } from "jslib-angular/services/modal.service";
|
|
||||||
import { ApiService } from "jslib-common/abstractions/api.service";
|
|
||||||
import { CryptoService } from "jslib-common/abstractions/crypto.service";
|
|
||||||
import { I18nService } from "jslib-common/abstractions/i18n.service";
|
|
||||||
import { LogService } from "jslib-common/abstractions/log.service";
|
|
||||||
import { PlatformUtilsService } from "jslib-common/abstractions/platformUtils.service";
|
|
||||||
import { SyncService } from "jslib-common/abstractions/sync.service";
|
|
||||||
import { UserVerificationService } from "jslib-common/abstractions/userVerification.service";
|
|
||||||
import { Utils } from "jslib-common/misc/utils";
|
|
||||||
import { Organization } from "jslib-common/models/domain/organization";
|
|
||||||
import { OrganizationUserResetPasswordEnrollmentRequest } from "jslib-common/models/request/organizationUserResetPasswordEnrollmentRequest";
|
|
||||||
import { Verification } from "jslib-common/types/verification";
|
|
||||||
|
|
||||||
@Component({
|
|
||||||
selector: "app-enroll-master-password-reset",
|
|
||||||
templateUrl: "enroll-master-password-reset.component.html",
|
|
||||||
})
|
|
||||||
export class EnrollMasterPasswordReset {
|
|
||||||
organization: Organization;
|
|
||||||
|
|
||||||
verification: Verification;
|
|
||||||
formPromise: Promise<any>;
|
|
||||||
|
|
||||||
constructor(
|
|
||||||
private userVerificationService: UserVerificationService,
|
|
||||||
private apiService: ApiService,
|
|
||||||
private platformUtilsService: PlatformUtilsService,
|
|
||||||
private i18nService: I18nService,
|
|
||||||
private cryptoService: CryptoService,
|
|
||||||
private syncService: SyncService,
|
|
||||||
private logService: LogService,
|
|
||||||
private modalRef: ModalRef,
|
|
||||||
config: ModalConfig
|
|
||||||
) {
|
|
||||||
this.organization = config.data.organization;
|
|
||||||
}
|
|
||||||
|
|
||||||
async submit() {
|
|
||||||
let toastStringRef = "withdrawPasswordResetSuccess";
|
|
||||||
|
|
||||||
this.formPromise = this.userVerificationService
|
|
||||||
.buildRequest(this.verification, OrganizationUserResetPasswordEnrollmentRequest)
|
|
||||||
.then(async (request) => {
|
|
||||||
// Set variables
|
|
||||||
let keyString: string = null;
|
|
||||||
|
|
||||||
// Enrolling
|
|
||||||
if (!this.organization.resetPasswordEnrolled) {
|
|
||||||
// Retrieve Public Key
|
|
||||||
const orgKeys = await this.apiService.getOrganizationKeys(this.organization.id);
|
|
||||||
if (orgKeys == null) {
|
|
||||||
throw new Error(this.i18nService.t("resetPasswordOrgKeysError"));
|
|
||||||
}
|
|
||||||
|
|
||||||
const publicKey = Utils.fromB64ToArray(orgKeys.publicKey);
|
|
||||||
|
|
||||||
// RSA Encrypt user's encKey.key with organization public key
|
|
||||||
const encKey = await this.cryptoService.getEncKey();
|
|
||||||
const encryptedKey = await this.cryptoService.rsaEncrypt(encKey.key, publicKey.buffer);
|
|
||||||
keyString = encryptedKey.encryptedString;
|
|
||||||
toastStringRef = "enrollPasswordResetSuccess";
|
|
||||||
|
|
||||||
// Create request and execute enrollment
|
|
||||||
request.resetPasswordKey = keyString;
|
|
||||||
await this.apiService.putOrganizationUserResetPasswordEnrollment(
|
|
||||||
this.organization.id,
|
|
||||||
this.organization.userId,
|
|
||||||
request
|
|
||||||
);
|
|
||||||
} else {
|
|
||||||
// Withdrawal
|
|
||||||
request.resetPasswordKey = keyString;
|
|
||||||
await this.apiService.putOrganizationUserResetPasswordEnrollment(
|
|
||||||
this.organization.id,
|
|
||||||
this.organization.userId,
|
|
||||||
request
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
await this.syncService.fullSync(true);
|
|
||||||
});
|
|
||||||
try {
|
|
||||||
await this.formPromise;
|
|
||||||
this.platformUtilsService.showToast("success", null, this.i18nService.t(toastStringRef));
|
|
||||||
this.modalRef.close();
|
|
||||||
} catch (e) {
|
|
||||||
this.logService.error(e);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
get isEnrolled(): boolean {
|
|
||||||
return this.organization.resetPasswordEnrolled;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
import { ScrollingModule } from "@angular/cdk/scrolling";
|
|
||||||
import { NgModule } from "@angular/core";
|
|
||||||
|
|
||||||
import { LooseComponentsModule } from "../../loose-components.module";
|
|
||||||
import { SharedModule } from "../../shared.module";
|
|
||||||
|
|
||||||
import { EnrollMasterPasswordReset } from "./enroll-master-password-reset.component";
|
|
||||||
|
|
||||||
@NgModule({
|
|
||||||
imports: [SharedModule, ScrollingModule, LooseComponentsModule],
|
|
||||||
declarations: [EnrollMasterPasswordReset],
|
|
||||||
exports: [EnrollMasterPasswordReset],
|
|
||||||
})
|
|
||||||
export class OrganizationUserModule {}
|
|
||||||
@@ -1,17 +1,17 @@
|
|||||||
import { Component, Input } from "@angular/core";
|
import { Component, Input } from "@angular/core";
|
||||||
|
|
||||||
import { ModalService } from "jslib-angular/services/modal.service";
|
|
||||||
import { ApiService } from "jslib-common/abstractions/api.service";
|
import { ApiService } from "jslib-common/abstractions/api.service";
|
||||||
|
import { CryptoService } from "jslib-common/abstractions/crypto.service";
|
||||||
import { I18nService } from "jslib-common/abstractions/i18n.service";
|
import { I18nService } from "jslib-common/abstractions/i18n.service";
|
||||||
import { LogService } from "jslib-common/abstractions/log.service";
|
import { LogService } from "jslib-common/abstractions/log.service";
|
||||||
import { PlatformUtilsService } from "jslib-common/abstractions/platformUtils.service";
|
import { PlatformUtilsService } from "jslib-common/abstractions/platformUtils.service";
|
||||||
import { PolicyService } from "jslib-common/abstractions/policy.service";
|
import { PolicyService } from "jslib-common/abstractions/policy.service";
|
||||||
import { SyncService } from "jslib-common/abstractions/sync.service";
|
import { SyncService } from "jslib-common/abstractions/sync.service";
|
||||||
import { PolicyType } from "jslib-common/enums/policyType";
|
import { PolicyType } from "jslib-common/enums/policyType";
|
||||||
|
import { Utils } from "jslib-common/misc/utils";
|
||||||
import { Organization } from "jslib-common/models/domain/organization";
|
import { Organization } from "jslib-common/models/domain/organization";
|
||||||
import { Policy } from "jslib-common/models/domain/policy";
|
import { Policy } from "jslib-common/models/domain/policy";
|
||||||
|
import { OrganizationUserResetPasswordEnrollmentRequest } from "jslib-common/models/request/organizationUserResetPasswordEnrollmentRequest";
|
||||||
import { EnrollMasterPasswordReset } from "../../organizations/users/enroll-master-password-reset.component";
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-organization-options",
|
selector: "app-organization-options",
|
||||||
@@ -29,8 +29,8 @@ export class OrganizationOptionsComponent {
|
|||||||
private i18nService: I18nService,
|
private i18nService: I18nService,
|
||||||
private apiService: ApiService,
|
private apiService: ApiService,
|
||||||
private syncService: SyncService,
|
private syncService: SyncService,
|
||||||
|
private cryptoService: CryptoService,
|
||||||
private policyService: PolicyService,
|
private policyService: PolicyService,
|
||||||
private modalService: ModalService,
|
|
||||||
private logService: LogService
|
private logService: LogService
|
||||||
) {}
|
) {}
|
||||||
|
|
||||||
@@ -113,11 +113,70 @@ export class OrganizationOptionsComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async toggleResetPasswordEnrollment(org: Organization) {
|
async toggleResetPasswordEnrollment(org: Organization) {
|
||||||
this.modalService.open(EnrollMasterPasswordReset, {
|
// Set variables
|
||||||
allowMultipleModals: true,
|
let keyString: string = null;
|
||||||
data: {
|
let toastStringRef = "withdrawPasswordResetSuccess";
|
||||||
organization: org,
|
|
||||||
},
|
// Enrolling
|
||||||
});
|
if (!org.resetPasswordEnrolled) {
|
||||||
|
// Alert user about enrollment
|
||||||
|
const confirmed = await this.platformUtilsService.showDialog(
|
||||||
|
this.i18nService.t("resetPasswordEnrollmentWarning"),
|
||||||
|
null,
|
||||||
|
this.i18nService.t("yes"),
|
||||||
|
this.i18nService.t("no"),
|
||||||
|
"warning"
|
||||||
|
);
|
||||||
|
if (!confirmed) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Retrieve Public Key
|
||||||
|
this.actionPromise = this.apiService
|
||||||
|
.getOrganizationKeys(org.id)
|
||||||
|
.then(async (response) => {
|
||||||
|
if (response == null) {
|
||||||
|
throw new Error(this.i18nService.t("resetPasswordOrgKeysError"));
|
||||||
|
}
|
||||||
|
|
||||||
|
const publicKey = Utils.fromB64ToArray(response.publicKey);
|
||||||
|
|
||||||
|
// RSA Encrypt user's encKey.key with organization public key
|
||||||
|
const encKey = await this.cryptoService.getEncKey();
|
||||||
|
const encryptedKey = await this.cryptoService.rsaEncrypt(encKey.key, publicKey.buffer);
|
||||||
|
keyString = encryptedKey.encryptedString;
|
||||||
|
toastStringRef = "enrollPasswordResetSuccess";
|
||||||
|
|
||||||
|
// Create request and execute enrollment
|
||||||
|
const request = new OrganizationUserResetPasswordEnrollmentRequest();
|
||||||
|
request.resetPasswordKey = keyString;
|
||||||
|
return this.apiService.putOrganizationUserResetPasswordEnrollment(
|
||||||
|
org.id,
|
||||||
|
org.userId,
|
||||||
|
request
|
||||||
|
);
|
||||||
|
})
|
||||||
|
.then(() => {
|
||||||
|
return this.syncService.fullSync(true);
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
// Withdrawal
|
||||||
|
const request = new OrganizationUserResetPasswordEnrollmentRequest();
|
||||||
|
request.resetPasswordKey = keyString;
|
||||||
|
this.actionPromise = this.apiService
|
||||||
|
.putOrganizationUserResetPasswordEnrollment(org.id, org.userId, request)
|
||||||
|
.then(() => {
|
||||||
|
return this.syncService.fullSync(true);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
await this.actionPromise;
|
||||||
|
this.platformUtilsService.showToast("success", null, this.i18nService.t(toastStringRef));
|
||||||
|
await this.load();
|
||||||
|
} catch (e) {
|
||||||
|
this.platformUtilsService.showToast("error", this.i18nService.t("errorOccurred"), e.message);
|
||||||
|
this.logService.error(e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,4 +23,14 @@ export class VaultFilterComponent extends BaseVaultFilterComponent {
|
|||||||
searchTextChanged() {
|
searchTextChanged() {
|
||||||
this.onSearchTextChanged.emit(this.searchText);
|
this.onSearchTextChanged.emit(this.searchText);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// This method exists because the vault component gets its data mixed up during the initial sync on first login. It looks for data before the sync is complete.
|
||||||
|
// It should be removed as soon as doing so makes sense.
|
||||||
|
async reloadOrganizations() {
|
||||||
|
this.organizations = await this.vaultFilterService.buildOrganizations();
|
||||||
|
this.activePersonalOwnershipPolicy =
|
||||||
|
await this.vaultFilterService.checkForPersonalOwnershipPolicy();
|
||||||
|
this.activeSingleOrganizationPolicy =
|
||||||
|
await this.vaultFilterService.checkForSingleOrganizationPolicy();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -58,6 +58,7 @@ export class IndividualVaultComponent implements OnInit, OnDestroy {
|
|||||||
updateKeyModalRef: ViewContainerRef;
|
updateKeyModalRef: ViewContainerRef;
|
||||||
|
|
||||||
favorites = false;
|
favorites = false;
|
||||||
|
type: CipherType = null;
|
||||||
folderId: string = null;
|
folderId: string = null;
|
||||||
collectionId: string = null;
|
collectionId: string = null;
|
||||||
organizationId: string = null;
|
organizationId: string = null;
|
||||||
@@ -326,7 +327,7 @@ export class IndividualVaultComponent implements OnInit, OnDestroy {
|
|||||||
|
|
||||||
async addCipher() {
|
async addCipher() {
|
||||||
const component = await this.editCipher(null);
|
const component = await this.editCipher(null);
|
||||||
component.type = this.activeFilter.cipherType;
|
component.type = this.type;
|
||||||
component.folderId = this.folderId === "none" ? null : this.folderId;
|
component.folderId = this.folderId === "none" ? null : this.folderId;
|
||||||
if (this.activeFilter.selectedCollectionId != null) {
|
if (this.activeFilter.selectedCollectionId != null) {
|
||||||
const collection = this.filterComponent.collections.fullList.filter(
|
const collection = this.filterComponent.collections.fullList.filter(
|
||||||
@@ -398,7 +399,7 @@ export class IndividualVaultComponent implements OnInit, OnDestroy {
|
|||||||
if (queryParams == null) {
|
if (queryParams == null) {
|
||||||
queryParams = {
|
queryParams = {
|
||||||
favorites: this.favorites ? true : null,
|
favorites: this.favorites ? true : null,
|
||||||
type: this.activeFilter.cipherType,
|
type: this.type,
|
||||||
folderId: this.folderId,
|
folderId: this.folderId,
|
||||||
collectionId: this.collectionId,
|
collectionId: this.collectionId,
|
||||||
deleted: this.deleted ? true : null,
|
deleted: this.deleted ? true : null,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<button
|
<button
|
||||||
bitBadge
|
bit-badge
|
||||||
[style.color]="textColor"
|
[style.color]="textColor"
|
||||||
[style.background-color]="color"
|
[style.background-color]="color"
|
||||||
appA11yTitle="{{ organizationName }}"
|
appA11yTitle="{{ organizationName }}"
|
||||||
|
|||||||
@@ -20,9 +20,8 @@ import {
|
|||||||
import { ListResponse } from "jslib-common/models/response/listResponse";
|
import { ListResponse } from "jslib-common/models/response/listResponse";
|
||||||
import { CollectionView } from "jslib-common/models/view/collectionView";
|
import { CollectionView } from "jslib-common/models/view/collectionView";
|
||||||
|
|
||||||
import { EntityUsersComponent } from "../../modules/organizations/manage/entity-users.component";
|
|
||||||
|
|
||||||
import { CollectionAddEditComponent } from "./collection-add-edit.component";
|
import { CollectionAddEditComponent } from "./collection-add-edit.component";
|
||||||
|
import { EntityUsersComponent } from "./entity-users.component";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-org-manage-collections",
|
selector: "app-org-manage-collections",
|
||||||
|
|||||||
@@ -29,52 +29,52 @@
|
|||||||
></i>
|
></i>
|
||||||
<span class="sr-only">{{ "loading" | i18n }}</span>
|
<span class="sr-only">{{ "loading" | i18n }}</span>
|
||||||
</div>
|
</div>
|
||||||
<cdk-virtual-scroll-viewport
|
<div
|
||||||
itemSize="46"
|
class="modal-body"
|
||||||
minBufferPx="600"
|
*ngIf="
|
||||||
maxBufferPx="1200"
|
!loading && users && (users | search: searchText:'name':'email':'id') as searchedUsers
|
||||||
[style]="scrollViewportStyle"
|
"
|
||||||
>
|
>
|
||||||
<div class="modal-body" *ngIf="!loading && users && searchedUsers">
|
<div class="d-flex">
|
||||||
<div class="d-flex">
|
<div class="mr-3">
|
||||||
<div class="mr-3">
|
<label class="sr-only" for="search">{{ "search" | i18n }}</label>
|
||||||
<label class="sr-only" for="search">{{ "search" | i18n }}</label>
|
<input
|
||||||
<input
|
type="search"
|
||||||
type="search"
|
class="form-control form-control-sm"
|
||||||
class="form-control form-control-sm"
|
id="search"
|
||||||
id="search"
|
placeholder="{{ 'search' | i18n }}"
|
||||||
placeholder="{{ 'search' | i18n }}"
|
name="SearchText"
|
||||||
name="SearchText"
|
[(ngModel)]="searchText"
|
||||||
[(ngModel)]="searchText"
|
/>
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div class="btn-group btn-group-sm" role="group">
|
|
||||||
<button
|
|
||||||
type="button"
|
|
||||||
class="btn btn-outline-secondary"
|
|
||||||
[ngClass]="{ active: !showSelected }"
|
|
||||||
(click)="filterSelected(false)"
|
|
||||||
>
|
|
||||||
{{ "all" | i18n }}
|
|
||||||
</button>
|
|
||||||
<button
|
|
||||||
type="button"
|
|
||||||
class="btn btn-outline-secondary"
|
|
||||||
[ngClass]="{ active: showSelected }"
|
|
||||||
(click)="filterSelected(true)"
|
|
||||||
>
|
|
||||||
{{ "selected" | i18n }}
|
|
||||||
<span class="badge badge-pill badge-info" *ngIf="selectedCount">{{
|
|
||||||
selectedCount
|
|
||||||
}}</span>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<ng-container *ngIf="!searchedUsers.length">
|
<div class="btn-group btn-group-sm" role="group">
|
||||||
<hr />
|
<button
|
||||||
{{ "noUsersInList" | i18n }}
|
type="button"
|
||||||
</ng-container>
|
class="btn btn-outline-secondary"
|
||||||
<table class="table table-hover table-list mb-0" [hidden]="!searchedUsers.length">
|
[ngClass]="{ active: !showSelected }"
|
||||||
|
(click)="filterSelected(false)"
|
||||||
|
>
|
||||||
|
{{ "all" | i18n }}
|
||||||
|
</button>
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
class="btn btn-outline-secondary"
|
||||||
|
[ngClass]="{ active: showSelected }"
|
||||||
|
(click)="filterSelected(true)"
|
||||||
|
>
|
||||||
|
{{ "selected" | i18n }}
|
||||||
|
<span class="badge badge-pill badge-info" *ngIf="selectedCount">{{
|
||||||
|
selectedCount
|
||||||
|
}}</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<ng-container *ngIf="!searchedUsers.length">
|
||||||
|
<hr />
|
||||||
|
{{ "noUsersInList" | i18n }}
|
||||||
|
</ng-container>
|
||||||
|
<ng-container *ngIf="searchedUsers.length">
|
||||||
|
<table class="table table-hover table-list mb-0">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th> </th>
|
<th> </th>
|
||||||
@@ -91,7 +91,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr *cdkVirtualFor="let u of searchedUsers" class="">
|
<tr *ngFor="let u of searchedUsers">
|
||||||
<td class="table-list-checkbox" (click)="check(u)">
|
<td class="table-list-checkbox" (click)="check(u)">
|
||||||
<input
|
<input
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
@@ -164,8 +164,8 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</ng-container>
|
||||||
</cdk-virtual-scroll-viewport>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button type="submit" class="btn btn-primary btn-submit" [disabled]="form.loading">
|
<button type="submit" class="btn btn-primary btn-submit" [disabled]="form.loading">
|
||||||
<i class="bwi bwi-spinner bwi-spin" title="{{ 'loading' | i18n }}" aria-hidden="true"></i>
|
<i class="bwi bwi-spinner bwi-spin" title="{{ 'loading' | i18n }}" aria-hidden="true"></i>
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
import { Component, EventEmitter, Input, OnInit, Output } from "@angular/core";
|
import { Component, EventEmitter, Input, OnInit, Output } from "@angular/core";
|
||||||
|
|
||||||
import { SearchPipe } from "jslib-angular/pipes/search.pipe";
|
|
||||||
import { ApiService } from "jslib-common/abstractions/api.service";
|
import { ApiService } from "jslib-common/abstractions/api.service";
|
||||||
import { I18nService } from "jslib-common/abstractions/i18n.service";
|
import { I18nService } from "jslib-common/abstractions/i18n.service";
|
||||||
import { LogService } from "jslib-common/abstractions/log.service";
|
import { LogService } from "jslib-common/abstractions/log.service";
|
||||||
@@ -14,7 +13,6 @@ import { OrganizationUserUserDetailsResponse } from "jslib-common/models/respons
|
|||||||
@Component({
|
@Component({
|
||||||
selector: "app-entity-users",
|
selector: "app-entity-users",
|
||||||
templateUrl: "entity-users.component.html",
|
templateUrl: "entity-users.component.html",
|
||||||
providers: [SearchPipe],
|
|
||||||
})
|
})
|
||||||
export class EntityUsersComponent implements OnInit {
|
export class EntityUsersComponent implements OnInit {
|
||||||
@Input() entity: "group" | "collection";
|
@Input() entity: "group" | "collection";
|
||||||
@@ -35,7 +33,6 @@ export class EntityUsersComponent implements OnInit {
|
|||||||
private allUsers: OrganizationUserUserDetailsResponse[] = [];
|
private allUsers: OrganizationUserUserDetailsResponse[] = [];
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private search: SearchPipe,
|
|
||||||
private apiService: ApiService,
|
private apiService: ApiService,
|
||||||
private i18nService: I18nService,
|
private i18nService: I18nService,
|
||||||
private platformUtilsService: PlatformUtilsService,
|
private platformUtilsService: PlatformUtilsService,
|
||||||
@@ -55,14 +52,6 @@ export class EntityUsersComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
get searchedUsers() {
|
|
||||||
return this.search.transform(this.users, this.searchText, "name", "email", "id");
|
|
||||||
}
|
|
||||||
|
|
||||||
get scrollViewportStyle() {
|
|
||||||
return `min-height: 120px; height: ${120 + this.searchedUsers.length * 46}px`;
|
|
||||||
}
|
|
||||||
|
|
||||||
async loadUsers() {
|
async loadUsers() {
|
||||||
const users = await this.apiService.getOrganizationUsers(this.organizationId);
|
const users = await this.apiService.getOrganizationUsers(this.organizationId);
|
||||||
this.allUsers = users.data.map((r) => r).sort(Utils.getSortFunction(this.i18nService, "email"));
|
this.allUsers = users.data.map((r) => r).sort(Utils.getSortFunction(this.i18nService, "email"));
|
||||||
@@ -12,8 +12,7 @@ import { SearchService } from "jslib-common/abstractions/search.service";
|
|||||||
import { Utils } from "jslib-common/misc/utils";
|
import { Utils } from "jslib-common/misc/utils";
|
||||||
import { GroupResponse } from "jslib-common/models/response/groupResponse";
|
import { GroupResponse } from "jslib-common/models/response/groupResponse";
|
||||||
|
|
||||||
import { EntityUsersComponent } from "../../modules/organizations/manage/entity-users.component";
|
import { EntityUsersComponent } from "./entity-users.component";
|
||||||
|
|
||||||
import { GroupAddEditComponent } from "./group-add-edit.component";
|
import { GroupAddEditComponent } from "./group-add-edit.component";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
|||||||
@@ -52,7 +52,7 @@
|
|||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener"
|
rel="noopener"
|
||||||
appA11yTitle="{{ 'learnMore' | i18n }}"
|
appA11yTitle="{{ 'learnMore' | i18n }}"
|
||||||
href="https://bitwarden.com/help/user-types-access-control/"
|
href="https://bitwarden.com/help/provider-users/"
|
||||||
>
|
>
|
||||||
<i class="bwi bwi-question-circle" aria-hidden="true"></i>
|
<i class="bwi bwi-question-circle" aria-hidden="true"></i>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
import { NgModule } from "@angular/core";
|
import { NgModule } from "@angular/core";
|
||||||
|
|
||||||
import { LooseComponentsModule } from "./modules/loose-components.module";
|
import { LooseComponentsModule } from "./modules/loose-components.module";
|
||||||
import { OrganizationManageModule } from "./modules/organizations/manage/organization-manage.module";
|
|
||||||
import { OrganizationUserModule } from "./modules/organizations/users/organization-user.module";
|
|
||||||
import { PipesModule } from "./modules/pipes/pipes.module";
|
import { PipesModule } from "./modules/pipes/pipes.module";
|
||||||
import { SharedModule } from "./modules/shared.module";
|
import { SharedModule } from "./modules/shared.module";
|
||||||
import { VaultFilterModule } from "./modules/vault-filter/vault-filter.module";
|
import { VaultFilterModule } from "./modules/vault-filter/vault-filter.module";
|
||||||
@@ -15,8 +13,6 @@ import { OrganizationBadgeModule } from "./modules/vault/modules/organization-ba
|
|||||||
VaultFilterModule,
|
VaultFilterModule,
|
||||||
OrganizationBadgeModule,
|
OrganizationBadgeModule,
|
||||||
PipesModule,
|
PipesModule,
|
||||||
OrganizationManageModule,
|
|
||||||
OrganizationUserModule,
|
|
||||||
],
|
],
|
||||||
exports: [LooseComponentsModule, VaultFilterModule, OrganizationBadgeModule, PipesModule],
|
exports: [LooseComponentsModule, VaultFilterModule, OrganizationBadgeModule, PipesModule],
|
||||||
bootstrap: [],
|
bootstrap: [],
|
||||||
|
|||||||
@@ -17,7 +17,13 @@
|
|||||||
<small class="form-text text-muted">{{ "breachCheckUsernameEmail" | i18n }}</small>
|
<small class="form-text text-muted">{{ "breachCheckUsernameEmail" | i18n }}</small>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<button bitButton buttonType="primary" class="btn-submit" type="submit" [disabled]="form.loading">
|
<button
|
||||||
|
bit-button
|
||||||
|
buttonType="primary"
|
||||||
|
class="btn-submit"
|
||||||
|
type="submit"
|
||||||
|
[disabled]="form.loading"
|
||||||
|
>
|
||||||
<i class="bwi bwi-spinner bwi-spin" title="{{ 'loading' | i18n }}" aria-hidden="true"></i>
|
<i class="bwi bwi-spinner bwi-spin" title="{{ 'loading' | i18n }}" aria-hidden="true"></i>
|
||||||
<span>{{ "checkBreaches" | i18n }}</span>
|
<span>{{ "checkBreaches" | i18n }}</span>
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<p>{{ "exposedPasswordsReportDesc" | i18n }}</p>
|
<p>{{ "exposedPasswordsReportDesc" | i18n }}</p>
|
||||||
<button
|
<button
|
||||||
bitButton
|
bit-button
|
||||||
buttonType="primary"
|
buttonType="primary"
|
||||||
type="button"
|
type="button"
|
||||||
class="btn-submit"
|
class="btn-submit"
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
<p class="tw-mb-0">{{ report.description | i18n }}</p>
|
<p class="tw-mb-0">{{ report.description | i18n }}</p>
|
||||||
</div>
|
</div>
|
||||||
<span
|
<span
|
||||||
bitBadge
|
bit-badge
|
||||||
badgeType="success"
|
badgeType="success"
|
||||||
class="tw-absolute tw-left-2 tw-top-2 tw-leading-none"
|
class="tw-absolute tw-left-2 tw-top-2 tw-leading-none"
|
||||||
*ngIf="premium"
|
*ngIf="premium"
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
<div class="row mt-4">
|
<div class="row mt-4">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<a bitButton routerLink="./" *ngIf="!homepage">
|
<a bit-button routerLink="./" *ngIf="!homepage">
|
||||||
<i class="bwi bwi-angle-left" aria-hidden="true"></i>
|
<i class="bwi bwi-angle-left" aria-hidden="true"></i>
|
||||||
{{ "backToReports" | i18n }}
|
{{ "backToReports" | i18n }}
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<form #form (ngSubmit)="load()" [appApiAction]="formPromise" class="container" ngNativeValidate>
|
<form #form (ngSubmit)="load()" [appApiAction]="formPromise" class="container" ngNativeValidate>
|
||||||
<div class="row justify-content-center mt-5">
|
<div class="row justify-content-center mt-5">
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<h1 class="lead text-center mb-4">Bitwarden Send</h1>
|
<p class="lead text-center mb-4">Bitwarden Send</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-12 text-center" *ngIf="creatorIdentifier != null">
|
<div class="col-12 text-center" *ngIf="creatorIdentifier != null">
|
||||||
<p>{{ "sendCreatorIdentifier" | i18n: creatorIdentifier }}</p>
|
<p>{{ "sendCreatorIdentifier" | i18n: creatorIdentifier }}</p>
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
<ul class="filter-options">
|
<ul class="filter-options">
|
||||||
<li class="filter-option" [ngClass]="{ active: selectedAll }">
|
<li class="filter-option" [ngClass]="{ active: selectedAll }">
|
||||||
<span class="filter-buttons">
|
<span class="filter-buttons">
|
||||||
<button bitButton class="filter-button" appStopClick (click)="selectAll()">
|
<button bit-button class="filter-button" appStopClick (click)="selectAll()">
|
||||||
<i class="bwi bwi-fw bwi-filter"></i>{{ "allSends" | i18n }}
|
<i class="bwi bwi-fw bwi-filter"></i>{{ "allSends" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
</span>
|
</span>
|
||||||
@@ -38,7 +38,7 @@
|
|||||||
<li class="filter-option" [ngClass]="{ active: selectedType === sendType.Text }">
|
<li class="filter-option" [ngClass]="{ active: selectedType === sendType.Text }">
|
||||||
<span class="filter-buttons">
|
<span class="filter-buttons">
|
||||||
<button
|
<button
|
||||||
bitButton
|
bit-button
|
||||||
class="filter-button"
|
class="filter-button"
|
||||||
appStopClick
|
appStopClick
|
||||||
(click)="selectType(sendType.Text)"
|
(click)="selectType(sendType.Text)"
|
||||||
@@ -50,7 +50,7 @@
|
|||||||
<li class="filter-option" [ngClass]="{ active: selectedType === sendType.File }">
|
<li class="filter-option" [ngClass]="{ active: selectedType === sendType.File }">
|
||||||
<span class="filter-buttons">
|
<span class="filter-buttons">
|
||||||
<button
|
<button
|
||||||
bitButton
|
bit-button
|
||||||
class="filter-button"
|
class="filter-button"
|
||||||
appStopClick
|
appStopClick
|
||||||
(click)="selectType(sendType.File)"
|
(click)="selectType(sendType.File)"
|
||||||
@@ -160,15 +160,19 @@
|
|||||||
<i class="bwi bwi-ellipsis-v bwi-lg" aria-hidden="true"></i>
|
<i class="bwi bwi-ellipsis-v bwi-lg" aria-hidden="true"></i>
|
||||||
</button>
|
</button>
|
||||||
<bit-menu #sendOptions>
|
<bit-menu #sendOptions>
|
||||||
<button bitMenuItem (click)="copy(s)">
|
<button bit-menu-item (click)="copy(s)">
|
||||||
<i class="bwi bwi-fw bwi-clone" aria-hidden="true"></i>
|
<i class="bwi bwi-fw bwi-clone" aria-hidden="true"></i>
|
||||||
{{ "copySendLink" | i18n }}
|
{{ "copySendLink" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<button bitMenuItem (click)="removePassword(s)" *ngIf="s.password && !disableSend">
|
<button
|
||||||
|
bit-menu-item
|
||||||
|
(click)="removePassword(s)"
|
||||||
|
*ngIf="s.password && !disableSend"
|
||||||
|
>
|
||||||
<i class="bwi bwi-fw bwi-close" aria-hidden="true"></i>
|
<i class="bwi bwi-fw bwi-close" aria-hidden="true"></i>
|
||||||
{{ "removePassword" | i18n }}
|
{{ "removePassword" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<button bitMenuItem (click)="delete(s)">
|
<button bit-menu-item (click)="delete(s)">
|
||||||
<span class="tw-text-danger">
|
<span class="tw-text-danger">
|
||||||
<i class="bwi bwi-fw bwi-trash" aria-hidden="true"></i>
|
<i class="bwi bwi-fw bwi-trash" aria-hidden="true"></i>
|
||||||
{{ "delete" | i18n }}
|
{{ "delete" | i18n }}
|
||||||
|
|||||||
@@ -14,13 +14,13 @@
|
|||||||
<div class="card border-danger">
|
<div class="card border-danger">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<p>{{ "dangerZoneDesc" | i18n }}</p>
|
<p>{{ "dangerZoneDesc" | i18n }}</p>
|
||||||
<button bitButton buttonType="danger" (click)="deauthorizeSessions()">
|
<button bit-button buttonType="danger" (click)="deauthorizeSessions()">
|
||||||
{{ "deauthorizeSessions" | i18n }}
|
{{ "deauthorizeSessions" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<button bitButton buttonType="danger" (click)="purgeVault()">
|
<button bit-button buttonType="danger" (click)="purgeVault()">
|
||||||
{{ "purgeVault" | i18n }}
|
{{ "purgeVault" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<button bitButton buttonType="danger" (click)="deleteAccount()">
|
<button bit-button buttonType="danger" (click)="deleteAccount()">
|
||||||
{{ "deleteAccount" | i18n }}
|
{{ "deleteAccount" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -71,7 +71,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<button bitButton buttonType="primary" class="btn-submit" [disabled]="form.loading">
|
<button bit-button buttonType="primary" class="btn-submit" [disabled]="form.loading">
|
||||||
<i class="bwi bwi-spinner bwi-spin" title="{{ 'loading' | i18n }}" aria-hidden="true"></i>
|
<i class="bwi bwi-spinner bwi-spin" title="{{ 'loading' | i18n }}" aria-hidden="true"></i>
|
||||||
<span>{{ "changeKdf" | i18n }}</span>
|
<span>{{ "changeKdf" | i18n }}</span>
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@@ -87,7 +87,7 @@
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<button bitButton buttonType="primary" class="btn-submit" [disabled]="form.loading">
|
<button bit-button buttonType="primary" class="btn-submit" [disabled]="form.loading">
|
||||||
<i class="bwi bwi-spinner bwi-spin" title="{{ 'loading' | i18n }}" aria-hidden="true"></i>
|
<i class="bwi bwi-spinner bwi-spin" title="{{ 'loading' | i18n }}" aria-hidden="true"></i>
|
||||||
<span>{{ "changeMasterPassword" | i18n }}</span>
|
<span>{{ "changeMasterPassword" | i18n }}</span>
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
{{ "paymentMethod" | i18n }}
|
{{ "paymentMethod" | i18n }}
|
||||||
</h1>
|
</h1>
|
||||||
<button
|
<button
|
||||||
bitButton
|
bit-button
|
||||||
buttonType="secondary"
|
buttonType="secondary"
|
||||||
(click)="load()"
|
(click)="load()"
|
||||||
class="tw-ml-auto"
|
class="tw-ml-auto"
|
||||||
@@ -28,7 +28,7 @@
|
|||||||
<strong>{{ creditOrBalance | currency: "$" }}</strong>
|
<strong>{{ creditOrBalance | currency: "$" }}</strong>
|
||||||
</p>
|
</p>
|
||||||
<p>{{ "creditAppliedDesc" | i18n }}</p>
|
<p>{{ "creditAppliedDesc" | i18n }}</p>
|
||||||
<button bitButton buttonType="secondary" (click)="addCredit()" *ngIf="!showAddCredit">
|
<button bit-button buttonType="secondary" (click)="addCredit()" *ngIf="!showAddCredit">
|
||||||
{{ "addCredit" | i18n }}
|
{{ "addCredit" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<app-add-credit
|
<app-add-credit
|
||||||
@@ -56,7 +56,7 @@
|
|||||||
{{ paymentSource.description }}
|
{{ paymentSource.description }}
|
||||||
</p>
|
</p>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
<button bitButton buttonType="secondary" (click)="changePayment()" *ngIf="!showAdjustPayment">
|
<button bit-button buttonType="secondary" (click)="changePayment()" *ngIf="!showAdjustPayment">
|
||||||
{{ (paymentSource ? "changePaymentMethod" : "addPaymentMethod") | i18n }}
|
{{ (paymentSource ? "changePaymentMethod" : "addPaymentMethod") | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<app-adjust-payment
|
<app-adjust-payment
|
||||||
|
|||||||
@@ -48,7 +48,7 @@
|
|||||||
{{ "premiumPrice" | i18n: (premiumPrice | currency: "$") }}
|
{{ "premiumPrice" | i18n: (premiumPrice | currency: "$") }}
|
||||||
</p>
|
</p>
|
||||||
<a
|
<a
|
||||||
bitButton
|
bit-button
|
||||||
href="https://vault.bitwarden.com/#/settings/premium"
|
href="https://vault.bitwarden.com/#/settings/premium"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener"
|
rel="noopener"
|
||||||
@@ -69,7 +69,7 @@
|
|||||||
}}</small>
|
}}</small>
|
||||||
</div>
|
</div>
|
||||||
<button
|
<button
|
||||||
bitButton
|
bit-button
|
||||||
buttonType="primary"
|
buttonType="primary"
|
||||||
type="submit"
|
type="submit"
|
||||||
class="btn-submit"
|
class="btn-submit"
|
||||||
@@ -125,7 +125,13 @@
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<small class="text-muted font-italic">{{ "paymentChargedAnnually" | i18n }}</small>
|
<small class="text-muted font-italic">{{ "paymentChargedAnnually" | i18n }}</small>
|
||||||
<button bitButton buttonType="primary" type="submit" class="btn-submit" [disabled]="form.loading">
|
<button
|
||||||
|
bit-button
|
||||||
|
buttonType="primary"
|
||||||
|
type="submit"
|
||||||
|
class="btn-submit"
|
||||||
|
[disabled]="form.loading"
|
||||||
|
>
|
||||||
<i class="bwi bwi-spinner bwi-spin" title="{{ 'loading' | i18n }}" aria-hidden="true"></i>
|
<i class="bwi bwi-spinner bwi-spin" title="{{ 'loading' | i18n }}" aria-hidden="true"></i>
|
||||||
<span>{{ "submit" | i18n }}</span>
|
<span>{{ "submit" | i18n }}</span>
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@@ -8,10 +8,10 @@
|
|||||||
<p>
|
<p>
|
||||||
{{ "userApiKeyDesc" | i18n }}
|
{{ "userApiKeyDesc" | i18n }}
|
||||||
</p>
|
</p>
|
||||||
<button bitButton buttonType="secondary" (click)="viewUserApiKey()">
|
<button bit-button buttonType="secondary" (click)="viewUserApiKey()">
|
||||||
{{ "viewApiKey" | i18n }}
|
{{ "viewApiKey" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<button bitButton buttonType="secondary" (click)="rotateUserApiKey()">
|
<button bit-button buttonType="secondary" (click)="rotateUserApiKey()">
|
||||||
{{ "rotateApiKey" | i18n }}
|
{{ "rotateApiKey" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<ng-template #viewUserApiKeyTemplate></ng-template>
|
<ng-template #viewUserApiKeyTemplate></ng-template>
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<p *ngIf="organizationId">{{ "twoStepLoginOrganizationDesc" | i18n }}</p>
|
<p *ngIf="organizationId">{{ "twoStepLoginOrganizationDesc" | i18n }}</p>
|
||||||
<bit-callout type="warning" *ngIf="!organizationId">
|
<bit-callout type="warning" *ngIf="!organizationId">
|
||||||
<p>{{ "twoStepLoginRecoveryWarning" | i18n }}</p>
|
<p>{{ "twoStepLoginRecoveryWarning" | i18n }}</p>
|
||||||
<button bitButton buttonType="secondary" (click)="recoveryCode()">
|
<button bit-button buttonType="secondary" (click)="recoveryCode()">
|
||||||
{{ "viewRecoveryCode" | i18n }}
|
{{ "viewRecoveryCode" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
</bit-callout>
|
</bit-callout>
|
||||||
@@ -45,7 +45,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="ml-auto">
|
<div class="ml-auto">
|
||||||
<button
|
<button
|
||||||
bitButton
|
bit-button
|
||||||
buttonType="secondary"
|
buttonType="secondary"
|
||||||
[disabled]="!canAccessPremium && p.premium"
|
[disabled]="!canAccessPremium && p.premium"
|
||||||
(click)="manage(p.type)"
|
(click)="manage(p.type)"
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
{{ "billingHistory" | i18n }}
|
{{ "billingHistory" | i18n }}
|
||||||
</h1>
|
</h1>
|
||||||
<button
|
<button
|
||||||
bitButton
|
bit-button
|
||||||
buttonType="secondary"
|
buttonType="secondary"
|
||||||
(click)="load()"
|
(click)="load()"
|
||||||
class="tw-ml-auto"
|
class="tw-ml-auto"
|
||||||
|
|||||||
@@ -39,7 +39,7 @@
|
|||||||
>
|
>
|
||||||
<p>{{ "subscriptionPendingCanceled" | i18n }}</p>
|
<p>{{ "subscriptionPendingCanceled" | i18n }}</p>
|
||||||
<button
|
<button
|
||||||
bitButton
|
bit-button
|
||||||
type="button"
|
type="button"
|
||||||
buttonType="secondary"
|
buttonType="secondary"
|
||||||
#reinstateBtn
|
#reinstateBtn
|
||||||
@@ -63,7 +63,7 @@
|
|||||||
<dt>{{ "status" | i18n }}</dt>
|
<dt>{{ "status" | i18n }}</dt>
|
||||||
<dd>
|
<dd>
|
||||||
<span class="text-capitalize">{{ (subscription && subscription.status) || "-" }}</span>
|
<span class="text-capitalize">{{ (subscription && subscription.status) || "-" }}</span>
|
||||||
<span bitBadge badgeType="warning" *ngIf="subscriptionMarkedForCancel">{{
|
<span bit-badge badgeType="warning" *ngIf="subscriptionMarkedForCancel">{{
|
||||||
"pendingCancellation" | i18n
|
"pendingCancellation" | i18n
|
||||||
}}</span>
|
}}</span>
|
||||||
</dd>
|
</dd>
|
||||||
@@ -96,11 +96,11 @@
|
|||||||
</div>
|
</div>
|
||||||
<ng-container *ngIf="selfHosted">
|
<ng-container *ngIf="selfHosted">
|
||||||
<div>
|
<div>
|
||||||
<button type="button" bitButton buttonType="secondary" (click)="updateLicense()">
|
<button type="button" bit-button buttonType="secondary" (click)="updateLicense()">
|
||||||
{{ "updateLicense" | i18n }}
|
{{ "updateLicense" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<a
|
<a
|
||||||
bitButton
|
bit-button
|
||||||
buttonType="secondary"
|
buttonType="secondary"
|
||||||
href="https://vault.bitwarden.com/#/settings/subscription"
|
href="https://vault.bitwarden.com/#/settings/subscription"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
@@ -131,7 +131,7 @@
|
|||||||
<ng-container *ngIf="!selfHosted">
|
<ng-container *ngIf="!selfHosted">
|
||||||
<div class="d-flex">
|
<div class="d-flex">
|
||||||
<button
|
<button
|
||||||
bitButton
|
bit-button
|
||||||
type="button"
|
type="button"
|
||||||
buttonType="secondary"
|
buttonType="secondary"
|
||||||
(click)="downloadLicense()"
|
(click)="downloadLicense()"
|
||||||
@@ -140,7 +140,7 @@
|
|||||||
{{ "downloadLicense" | i18n }}
|
{{ "downloadLicense" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
bitButton
|
bit-button
|
||||||
#cancelBtn
|
#cancelBtn
|
||||||
type="button"
|
type="button"
|
||||||
buttonType="danger"
|
buttonType="danger"
|
||||||
@@ -171,11 +171,11 @@
|
|||||||
<ng-container *ngIf="subscription && !subscription.cancelled && !subscriptionMarkedForCancel">
|
<ng-container *ngIf="subscription && !subscription.cancelled && !subscriptionMarkedForCancel">
|
||||||
<div class="mt-3">
|
<div class="mt-3">
|
||||||
<div class="d-flex" *ngIf="!showAdjustStorage">
|
<div class="d-flex" *ngIf="!showAdjustStorage">
|
||||||
<button bitButton type="button" buttonType="secondary" (click)="adjustStorage(true)">
|
<button bit-button type="button" buttonType="secondary" (click)="adjustStorage(true)">
|
||||||
{{ "addStorage" | i18n }}
|
{{ "addStorage" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
bitButton
|
bit-button
|
||||||
type="button"
|
type="button"
|
||||||
buttonType="secondary"
|
buttonType="secondary"
|
||||||
class="tw-ml-1"
|
class="tw-ml-1"
|
||||||
|
|||||||
@@ -64,12 +64,12 @@
|
|||||||
</button>
|
</button>
|
||||||
<bit-menu #cipherOptions>
|
<bit-menu #cipherOptions>
|
||||||
<ng-container *ngIf="c.type === cipherType.Login && !c.isDeleted">
|
<ng-container *ngIf="c.type === cipherType.Login && !c.isDeleted">
|
||||||
<button bitMenuItem (click)="copy(c, c.login.username, 'username', 'Username')">
|
<button bit-menu-item (click)="copy(c, c.login.username, 'username', 'Username')">
|
||||||
<i class="bwi bwi-fw bwi-clone" aria-hidden="true"></i>
|
<i class="bwi bwi-fw bwi-clone" aria-hidden="true"></i>
|
||||||
{{ "copyUsername" | i18n }}
|
{{ "copyUsername" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
bitMenuItem
|
bit-menu-item
|
||||||
(click)="copy(c, c.login.password, 'password', 'Password')"
|
(click)="copy(c, c.login.password, 'password', 'Password')"
|
||||||
*ngIf="c.viewPassword"
|
*ngIf="c.viewPassword"
|
||||||
>
|
>
|
||||||
@@ -77,24 +77,24 @@
|
|||||||
{{ "copyPassword" | i18n }}
|
{{ "copyPassword" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
bitMenuItem
|
bit-menu-item
|
||||||
(click)="copy(c, c.login.totp, 'verificationCodeTotp', 'TOTP')"
|
(click)="copy(c, c.login.totp, 'verificationCodeTotp', 'TOTP')"
|
||||||
*ngIf="displayTotpCopyButton(c)"
|
*ngIf="displayTotpCopyButton(c)"
|
||||||
>
|
>
|
||||||
<i class="bwi bwi-fw bwi-clone" aria-hidden="true"></i>
|
<i class="bwi bwi-fw bwi-clone" aria-hidden="true"></i>
|
||||||
{{ "copyVerificationCode" | i18n }}
|
{{ "copyVerificationCode" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<button bitMenuItem *ngIf="c.login.canLaunch" (click)="launch(c.login.launchUri)">
|
<button bit-menu-item *ngIf="c.login.canLaunch" (click)="launch(c.login.launchUri)">
|
||||||
<i class="bwi bwi-fw bwi-share-square" aria-hidden="true"></i>
|
<i class="bwi bwi-fw bwi-share-square" aria-hidden="true"></i>
|
||||||
{{ "launch" | i18n }}
|
{{ "launch" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
<button bitMenuItem (click)="attachments(c)">
|
<button bit-menu-item (click)="attachments(c)">
|
||||||
<i class="bwi bwi-fw bwi-paperclip" aria-hidden="true"></i>
|
<i class="bwi bwi-fw bwi-paperclip" aria-hidden="true"></i>
|
||||||
{{ "attachments" | i18n }}
|
{{ "attachments" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
bitMenuItem
|
bit-menu-item
|
||||||
*ngIf="((!organization && !c.organizationId) || organization) && !c.isDeleted"
|
*ngIf="((!organization && !c.organizationId) || organization) && !c.isDeleted"
|
||||||
(click)="clone(c)"
|
(click)="clone(c)"
|
||||||
>
|
>
|
||||||
@@ -102,26 +102,26 @@
|
|||||||
{{ "clone" | i18n }}
|
{{ "clone" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
bitMenuItem
|
bit-menu-item
|
||||||
*ngIf="!organization && !c.organizationId && !c.isDeleted"
|
*ngIf="!organization && !c.organizationId && !c.isDeleted"
|
||||||
(click)="share(c)"
|
(click)="share(c)"
|
||||||
>
|
>
|
||||||
<i class="bwi bwi-fw bwi-arrow-circle-right" aria-hidden="true"></i>
|
<i class="bwi bwi-fw bwi-arrow-circle-right" aria-hidden="true"></i>
|
||||||
{{ "moveToOrganization" | i18n }}
|
{{ "moveToOrganization" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<button bitMenuItem *ngIf="c.organizationId && !c.isDeleted" (click)="collections(c)">
|
<button bit-menu-item *ngIf="c.organizationId && !c.isDeleted" (click)="collections(c)">
|
||||||
<i class="bwi bwi-fw bwi-collection" aria-hidden="true"></i>
|
<i class="bwi bwi-fw bwi-collection" aria-hidden="true"></i>
|
||||||
{{ "collections" | i18n }}
|
{{ "collections" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<button bitMenuItem *ngIf="c.organizationId && accessEvents" (click)="events(c)">
|
<button bit-menu-item *ngIf="c.organizationId && accessEvents" (click)="events(c)">
|
||||||
<i class="bwi bwi-fw bwi-file-text" aria-hidden="true"></i>
|
<i class="bwi bwi-fw bwi-file-text" aria-hidden="true"></i>
|
||||||
{{ "eventLogs" | i18n }}
|
{{ "eventLogs" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<button bitMenuItem (click)="restore(c)" *ngIf="c.isDeleted">
|
<button bit-menu-item (click)="restore(c)" *ngIf="c.isDeleted">
|
||||||
<i class="bwi bwi-fw bwi-undo" aria-hidden="true"></i>
|
<i class="bwi bwi-fw bwi-undo" aria-hidden="true"></i>
|
||||||
{{ "restore" | i18n }}
|
{{ "restore" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<button bitMenuItem (click)="delete(c)">
|
<button bit-menu-item (click)="delete(c)">
|
||||||
<span class="tw-text-danger">
|
<span class="tw-text-danger">
|
||||||
<i class="bwi bwi-fw bwi-trash" aria-hidden="true"></i>
|
<i class="bwi bwi-fw bwi-trash" aria-hidden="true"></i>
|
||||||
{{ (c.isDeleted ? "permanentlyDelete" : "delete") | i18n }}
|
{{ (c.isDeleted ? "permanentlyDelete" : "delete") | i18n }}
|
||||||
|
|||||||
@@ -4163,7 +4163,7 @@
|
|||||||
"message": "Password reset success!"
|
"message": "Password reset success!"
|
||||||
},
|
},
|
||||||
"resetPasswordEnrollmentWarning": {
|
"resetPasswordEnrollmentWarning": {
|
||||||
"message": "Enrollment will allow organization administrators to change your master password"
|
"message": "Enrollment will allow organization administrators to change your master password. Are you sure you want to enroll?"
|
||||||
},
|
},
|
||||||
"resetPasswordPolicy": {
|
"resetPasswordPolicy": {
|
||||||
"message": "Master Password Reset"
|
"message": "Master Password Reset"
|
||||||
|
|||||||
@@ -204,60 +204,8 @@ const devServer =
|
|||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
key: "Content-Security-Policy",
|
key: "Content-Security-Policy",
|
||||||
value: `
|
value:
|
||||||
default-src 'self';
|
"default-src 'self'; script-src 'self' 'sha256-ryoU+5+IUZTuUyTElqkrQGBJXr1brEv6r2CA62WUw8w=' https://js.stripe.com https://js.braintreegateway.com https://www.paypalobjects.com; style-src 'self' https://assets.braintreegateway.com https://*.paypal.com 'sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=' 'sha256-JVRXyYPueLWdwGwY9m/7u4QlZ1xeQdqUj2t8OVIzZE4='; img-src 'self' data: https://icons.bitwarden.net https://*.paypal.com https://www.paypalobjects.com https://q.stripe.com https://haveibeenpwned.com https://www.gravatar.com; child-src 'self' https://js.stripe.com https://assets.braintreegateway.com https://*.paypal.com https://*.duosecurity.com; frame-src 'self' https://js.stripe.com https://assets.braintreegateway.com https://*.paypal.com https://*.duosecurity.com; connect-src 'self' wss://notifications.bitwarden.com https://notifications.bitwarden.com https://cdn.bitwarden.net https://api.pwnedpasswords.com https://2fa.directory/api/v3/totp.json https://api.stripe.com https://www.paypal.com https://api.braintreegateway.com https://client-analytics.braintreegateway.com https://*.braintree-api.com https://*.blob.core.windows.net https://app.simplelogin.io/api/alias/random/new https://app.anonaddy.com/api/v1/aliases; object-src 'self' blob:;",
|
||||||
script-src
|
|
||||||
'self'
|
|
||||||
'sha256-ryoU+5+IUZTuUyTElqkrQGBJXr1brEv6r2CA62WUw8w='
|
|
||||||
https://js.stripe.com
|
|
||||||
https://js.braintreegateway.com
|
|
||||||
https://www.paypalobjects.com;
|
|
||||||
style-src
|
|
||||||
'self'
|
|
||||||
https://assets.braintreegateway.com
|
|
||||||
https://*.paypal.com
|
|
||||||
'sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU='
|
|
||||||
'sha256-JVRXyYPueLWdwGwY9m/7u4QlZ1xeQdqUj2t8OVIzZE4=';
|
|
||||||
'sha256-0xHKHIT3+e2Gknxsm/cpErSprhL+o254L/y5bljg74U='
|
|
||||||
img-src
|
|
||||||
'self'
|
|
||||||
data:
|
|
||||||
https://icons.bitwarden.net
|
|
||||||
https://*.paypal.com
|
|
||||||
https://www.paypalobjects.com
|
|
||||||
https://q.stripe.com
|
|
||||||
https://haveibeenpwned.com
|
|
||||||
https://www.gravatar.com;
|
|
||||||
child-src
|
|
||||||
'self'
|
|
||||||
https://js.stripe.com
|
|
||||||
https://assets.braintreegateway.com
|
|
||||||
https://*.paypal.com
|
|
||||||
https://*.duosecurity.com;
|
|
||||||
frame-src
|
|
||||||
'self'
|
|
||||||
https://js.stripe.com
|
|
||||||
https://assets.braintreegateway.com
|
|
||||||
https://*.paypal.com
|
|
||||||
https://*.duosecurity.com;
|
|
||||||
connect-src
|
|
||||||
'self'
|
|
||||||
wss://notifications.bitwarden.com
|
|
||||||
https://notifications.bitwarden.com
|
|
||||||
https://cdn.bitwarden.net
|
|
||||||
https://api.pwnedpasswords.com
|
|
||||||
https://2fa.directory/api/v3/totp.json
|
|
||||||
https://api.stripe.com
|
|
||||||
https://www.paypal.com
|
|
||||||
https://api.braintreegateway.com
|
|
||||||
https://client-analytics.braintreegateway.com
|
|
||||||
https://*.braintree-api.com
|
|
||||||
https://*.blob.core.windows.net
|
|
||||||
https://app.simplelogin.io/api/alias/random/new
|
|
||||||
https://app.anonaddy.com/api/v1/aliases;
|
|
||||||
object-src
|
|
||||||
'self'
|
|
||||||
blob:;`,
|
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user