Merge branch 'master' into PS-589-add-2fa-new-device-login-settings-flag
# Conflicts: # jslib
This commit is contained in:
commit
84fd992b6f
|
@ -19,8 +19,8 @@ jobs:
|
||||||
name: Setup
|
name: Setup
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
outputs:
|
outputs:
|
||||||
release_version: ${{ steps.version.outputs.package }}
|
release_version: ${{ steps.version.outputs.version }}
|
||||||
tag_version: ${{ steps.version.outputs.tag }}
|
tag_version: ${{ steps.version.outputs.version }}
|
||||||
branch_name: ${{ steps.branch.outputs.branch_name }}
|
branch_name: ${{ steps.branch.outputs.branch_name }}
|
||||||
steps:
|
steps:
|
||||||
- name: Branch check
|
- name: Branch check
|
||||||
|
@ -38,20 +38,11 @@ jobs:
|
||||||
|
|
||||||
- name: Check Release Version
|
- name: Check Release Version
|
||||||
id: version
|
id: version
|
||||||
run: |
|
uses: bitwarden/gh-actions/release-version-check@ea9fab01d76940267b4147cc1c4542431246b9f6
|
||||||
version=$( jq -r ".version" package.json)
|
with:
|
||||||
previous_release_tag_version=$(
|
release-type: ${{ github.event.inputs.release_type }}
|
||||||
curl -sL https://api.github.com/repos/$GITHUB_REPOSITORY/releases/latest | jq -r ".tag_name"
|
project-type: ts
|
||||||
)
|
file: package.json
|
||||||
|
|
||||||
if [ "v$version" == "$previous_release_tag_version" ] && \
|
|
||||||
[ "${{ github.event.inputs.release_type }}" == "Initial Release" ]; then
|
|
||||||
echo "[!] Already released v$version. Please bump version to continue"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "::set-output name=package::$version"
|
|
||||||
echo "::set-output name=tag::v$version"
|
|
||||||
|
|
||||||
- name: Get branch name
|
- name: Get branch name
|
||||||
id: branch
|
id: branch
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
> **Repository Reorganization in Progress**
|
> **Archived**
|
||||||
>
|
>
|
||||||
> 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.
|
> This repository is archived, please go to https://github.com/bitwarden/clients for future development.
|
||||||
>
|
|
||||||
> 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,14 +22,16 @@ const routes: Routes = [
|
||||||
component: ManageComponent,
|
component: ManageComponent,
|
||||||
canActivate: [PermissionsGuard],
|
canActivate: [PermissionsGuard],
|
||||||
data: {
|
data: {
|
||||||
permissions: NavigationPermissionsService.getPermissions("manage").concat(
|
permissions: NavigationPermissionsService.getPermissions("manage"),
|
||||||
Permissions.ManageSso
|
|
||||||
),
|
|
||||||
},
|
},
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: "sso",
|
path: "sso",
|
||||||
component: SsoComponent,
|
component: SsoComponent,
|
||||||
|
canActivate: [PermissionsGuard],
|
||||||
|
data: {
|
||||||
|
permissions: [Permissions.ManageSso],
|
||||||
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
|
@ -15,3 +15,4 @@ 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
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "@bitwarden/web-vault",
|
"name": "@bitwarden/web-vault",
|
||||||
"version": "2.28.1",
|
"version": "2022.05.0",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@bitwarden/web-vault",
|
"name": "@bitwarden/web-vault",
|
||||||
"version": "2.28.1",
|
"version": "2022.05.0",
|
||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@bitwarden/web-vault",
|
"name": "@bitwarden/web-vault",
|
||||||
"version": "2.28.1",
|
"version": "2022.05.0",
|
||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
"repository": "https://github.com/bitwarden/web",
|
"repository": "https://github.com/bitwarden/web",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -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 bit-menu-item [routerLink]="['/organizations', org.id]">
|
<a bitMenuItem [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 bit-menu-item routerLink="/create-organization">
|
<a bitMenuItem 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 bit-badge badgeType="success" (click)="premiumRequired()">
|
<button *appNotPremium bitBadge badgeType="success" (click)="premiumRequired()">
|
||||||
{{ "premium" | i18n }}
|
{{ "premium" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
`,
|
`,
|
||||||
|
|
|
@ -65,24 +65,24 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<bit-menu-divider></bit-menu-divider>
|
<bit-menu-divider></bit-menu-divider>
|
||||||
<a bit-menu-item routerLink="/settings/account">
|
<a bitMenuItem 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 bit-menu-item href="https://bitwarden.com/help/" target="_blank" rel="noopener">
|
<a bitMenuItem 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 bit-menu-item href="https://bitwarden.com/download/" target="_blank" rel="noopener">
|
<a bitMenuItem 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 bit-menu-item type="button" (click)="lock()">
|
<button bitMenuItem 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 bit-menu-item type="button" (click)="logOut()">
|
<button bitMenuItem 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>
|
||||||
|
|
|
@ -0,0 +1,59 @@
|
||||||
|
<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>
|
|
@ -0,0 +1,97 @@
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,14 @@
|
||||||
|
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 {}
|
|
@ -31,7 +31,7 @@
|
||||||
<button
|
<button
|
||||||
class="toggle-button"
|
class="toggle-button"
|
||||||
*ngIf="c.children.length"
|
*ngIf="c.children.length"
|
||||||
(click)="collapse(c.node)"
|
(click)="toggleCollapse(c.node)"
|
||||||
title="{{ 'toggleCollapse' | i18n }}"
|
title="{{ 'toggleCollapse' | i18n }}"
|
||||||
[attr.aria-expanded]="!isCollapsed(c.node)"
|
[attr.aria-expanded]="!isCollapsed(c.node)"
|
||||||
[attr.aria-controls]="c.node.name + '_children'"
|
[attr.aria-controls]="c.node.name + '_children'"
|
||||||
|
|
|
@ -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,70 +113,11 @@ export class OrganizationOptionsComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
async toggleResetPasswordEnrollment(org: Organization) {
|
async toggleResetPasswordEnrollment(org: Organization) {
|
||||||
// Set variables
|
this.modalService.open(EnrollMasterPasswordReset, {
|
||||||
let keyString: string = null;
|
allowMultipleModals: true,
|
||||||
let toastStringRef = "withdrawPasswordResetSuccess";
|
data: {
|
||||||
|
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);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,7 +25,7 @@ export class VaultFilterComponent extends BaseVaultFilterComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
searchTextChanged() {
|
searchTextChanged() {
|
||||||
this.onSearchTextChanged.emit(this.searchText.normalize("NFD").replace(/[\u0300-\u036f]/g, ""));
|
this.onSearchTextChanged.emit(this.searchText);
|
||||||
}
|
}
|
||||||
|
|
||||||
async initCollections() {
|
async initCollections() {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<button
|
<button
|
||||||
bit-badge
|
bitBadge
|
||||||
[style.color]="textColor"
|
[style.color]="textColor"
|
||||||
[style.background-color]="color"
|
[style.background-color]="color"
|
||||||
appA11yTitle="{{ organizationName }}"
|
appA11yTitle="{{ organizationName }}"
|
||||||
|
|
|
@ -52,7 +52,7 @@
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener"
|
rel="noopener"
|
||||||
appA11yTitle="{{ 'learnMore' | i18n }}"
|
appA11yTitle="{{ 'learnMore' | i18n }}"
|
||||||
href="https://bitwarden.com/help/provider-users/"
|
href="https://bitwarden.com/help/user-types-access-control/"
|
||||||
>
|
>
|
||||||
<i class="bwi bwi-question-circle" aria-hidden="true"></i>
|
<i class="bwi bwi-question-circle" aria-hidden="true"></i>
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -2,6 +2,7 @@ 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 { 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,6 +16,7 @@ import { OrganizationBadgeModule } from "./modules/vault/modules/organization-ba
|
||||||
OrganizationBadgeModule,
|
OrganizationBadgeModule,
|
||||||
PipesModule,
|
PipesModule,
|
||||||
OrganizationManageModule,
|
OrganizationManageModule,
|
||||||
|
OrganizationUserModule,
|
||||||
],
|
],
|
||||||
exports: [LooseComponentsModule, VaultFilterModule, OrganizationBadgeModule, PipesModule],
|
exports: [LooseComponentsModule, VaultFilterModule, OrganizationBadgeModule, PipesModule],
|
||||||
bootstrap: [],
|
bootstrap: [],
|
||||||
|
|
|
@ -17,13 +17,7 @@
|
||||||
<small class="form-text text-muted">{{ "breachCheckUsernameEmail" | i18n }}</small>
|
<small class="form-text text-muted">{{ "breachCheckUsernameEmail" | i18n }}</small>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<button
|
<button bitButton buttonType="primary" class="btn-submit" type="submit" [disabled]="form.loading">
|
||||||
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
|
||||||
bit-button
|
bitButton
|
||||||
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
|
||||||
bit-badge
|
bitBadge
|
||||||
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 bit-button routerLink="./" *ngIf="!homepage">
|
<a bitButton 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>
|
||||||
|
|
|
@ -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 bit-button class="filter-button" appStopClick (click)="selectAll()">
|
<button bitButton 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
|
||||||
bit-button
|
bitButton
|
||||||
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
|
||||||
bit-button
|
bitButton
|
||||||
class="filter-button"
|
class="filter-button"
|
||||||
appStopClick
|
appStopClick
|
||||||
(click)="selectType(sendType.File)"
|
(click)="selectType(sendType.File)"
|
||||||
|
@ -160,19 +160,15 @@
|
||||||
<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 bit-menu-item (click)="copy(s)">
|
<button bitMenuItem (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
|
<button bitMenuItem (click)="removePassword(s)" *ngIf="s.password && !disableSend">
|
||||||
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 bit-menu-item (click)="delete(s)">
|
<button bitMenuItem (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 bit-button buttonType="danger" (click)="deauthorizeSessions()">
|
<button bitButton buttonType="danger" (click)="deauthorizeSessions()">
|
||||||
{{ "deauthorizeSessions" | i18n }}
|
{{ "deauthorizeSessions" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<button bit-button buttonType="danger" (click)="purgeVault()">
|
<button bitButton buttonType="danger" (click)="purgeVault()">
|
||||||
{{ "purgeVault" | i18n }}
|
{{ "purgeVault" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<button bit-button buttonType="danger" (click)="deleteAccount()">
|
<button bitButton buttonType="danger" (click)="deleteAccount()">
|
||||||
{{ "deleteAccount" | i18n }}
|
{{ "deleteAccount" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -3,6 +3,7 @@ import { Component } from "@angular/core";
|
||||||
import { ApiService } from "jslib-common/abstractions/api.service";
|
import { ApiService } from "jslib-common/abstractions/api.service";
|
||||||
import { LogService } from "jslib-common/abstractions/log.service";
|
import { LogService } from "jslib-common/abstractions/log.service";
|
||||||
import { OrganizationConnectionType } from "jslib-common/enums/organizationConnectionType";
|
import { OrganizationConnectionType } from "jslib-common/enums/organizationConnectionType";
|
||||||
|
import { Utils } from "jslib-common/misc/utils";
|
||||||
import { BillingSyncConfigApi } from "jslib-common/models/api/billingSyncConfigApi";
|
import { BillingSyncConfigApi } from "jslib-common/models/api/billingSyncConfigApi";
|
||||||
import { BillingSyncConfigRequest } from "jslib-common/models/request/billingSyncConfigRequest";
|
import { BillingSyncConfigRequest } from "jslib-common/models/request/billingSyncConfigRequest";
|
||||||
import { OrganizationConnectionRequest } from "jslib-common/models/request/organizationConnectionRequest";
|
import { OrganizationConnectionRequest } from "jslib-common/models/request/organizationConnectionRequest";
|
||||||
|
|
|
@ -71,7 +71,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<button bit-button buttonType="primary" class="btn-submit" [disabled]="form.loading">
|
<button bitButton 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 bit-button buttonType="primary" class="btn-submit" [disabled]="form.loading">
|
<button bitButton 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
|
||||||
bit-button
|
bitButton
|
||||||
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 bit-button buttonType="secondary" (click)="addCredit()" *ngIf="!showAddCredit">
|
<button bitButton 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 bit-button buttonType="secondary" (click)="changePayment()" *ngIf="!showAdjustPayment">
|
<button bitButton 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
|
||||||
bit-button
|
bitButton
|
||||||
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
|
||||||
bit-button
|
bitButton
|
||||||
buttonType="primary"
|
buttonType="primary"
|
||||||
type="submit"
|
type="submit"
|
||||||
class="btn-submit"
|
class="btn-submit"
|
||||||
|
@ -125,13 +125,7 @@
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<small class="text-muted font-italic">{{ "paymentChargedAnnually" | i18n }}</small>
|
<small class="text-muted font-italic">{{ "paymentChargedAnnually" | i18n }}</small>
|
||||||
<button
|
<button bitButton buttonType="primary" type="submit" class="btn-submit" [disabled]="form.loading">
|
||||||
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 bit-button buttonType="secondary" (click)="viewUserApiKey()">
|
<button bitButton buttonType="secondary" (click)="viewUserApiKey()">
|
||||||
{{ "viewApiKey" | i18n }}
|
{{ "viewApiKey" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<button bit-button buttonType="secondary" (click)="rotateUserApiKey()">
|
<button bitButton 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 bit-button buttonType="secondary" (click)="recoveryCode()">
|
<button bitButton 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
|
||||||
bit-button
|
bitButton
|
||||||
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
|
||||||
bit-button
|
bitButton
|
||||||
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
|
||||||
bit-button
|
bitButton
|
||||||
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 bit-badge badgeType="warning" *ngIf="subscriptionMarkedForCancel">{{
|
<span bitBadge 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" bit-button buttonType="secondary" (click)="updateLicense()">
|
<button type="button" bitButton buttonType="secondary" (click)="updateLicense()">
|
||||||
{{ "updateLicense" | i18n }}
|
{{ "updateLicense" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<a
|
<a
|
||||||
bit-button
|
bitButton
|
||||||
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
|
||||||
bit-button
|
bitButton
|
||||||
type="button"
|
type="button"
|
||||||
buttonType="secondary"
|
buttonType="secondary"
|
||||||
(click)="downloadLicense()"
|
(click)="downloadLicense()"
|
||||||
|
@ -140,7 +140,7 @@
|
||||||
{{ "downloadLicense" | i18n }}
|
{{ "downloadLicense" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
bit-button
|
bitButton
|
||||||
#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 bit-button type="button" buttonType="secondary" (click)="adjustStorage(true)">
|
<button bitButton type="button" buttonType="secondary" (click)="adjustStorage(true)">
|
||||||
{{ "addStorage" | i18n }}
|
{{ "addStorage" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
bit-button
|
bitButton
|
||||||
type="button"
|
type="button"
|
||||||
buttonType="secondary"
|
buttonType="secondary"
|
||||||
class="tw-ml-1"
|
class="tw-ml-1"
|
||||||
|
|
|
@ -40,11 +40,13 @@ export class GeneratorComponent extends BaseGeneratorComponent {
|
||||||
route,
|
route,
|
||||||
window
|
window
|
||||||
);
|
);
|
||||||
// Cannot use Firefox Relay on the web vault yet due to CORS issues with Firefox Relay API
|
if (platformUtilsService.isSelfHost()) {
|
||||||
this.forwardOptions.splice(
|
// Cannot use Firefox Relay on self hosted web vaults due to CORS issues with Firefox Relay API
|
||||||
this.forwardOptions.findIndex((o) => o.value === "firefoxrelay"),
|
this.forwardOptions.splice(
|
||||||
1
|
this.forwardOptions.findIndex((o) => o.value === "firefoxrelay"),
|
||||||
);
|
1
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async history() {
|
async history() {
|
||||||
|
|
|
@ -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 bit-menu-item (click)="copy(c, c.login.username, 'username', 'Username')">
|
<button bitMenuItem (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
|
||||||
bit-menu-item
|
bitMenuItem
|
||||||
(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
|
||||||
bit-menu-item
|
bitMenuItem
|
||||||
(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 bit-menu-item *ngIf="c.login.canLaunch" (click)="launch(c.login.launchUri)">
|
<button bitMenuItem *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 bit-menu-item (click)="attachments(c)">
|
<button bitMenuItem (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
|
||||||
bit-menu-item
|
bitMenuItem
|
||||||
*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
|
||||||
bit-menu-item
|
bitMenuItem
|
||||||
*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 bit-menu-item *ngIf="c.organizationId && !c.isDeleted" (click)="collections(c)">
|
<button bitMenuItem *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 bit-menu-item *ngIf="c.organizationId && accessEvents" (click)="events(c)">
|
<button bitMenuItem *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 bit-menu-item (click)="restore(c)" *ngIf="c.isDeleted">
|
<button bitMenuItem (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 bit-menu-item (click)="delete(c)">
|
<button bitMenuItem (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. Are you sure you want to enroll?"
|
"message": "Enrollment will allow organization administrators to change your master password"
|
||||||
},
|
},
|
||||||
"resetPasswordPolicy": {
|
"resetPasswordPolicy": {
|
||||||
"message": "Master Password Reset"
|
"message": "Master Password Reset"
|
||||||
|
@ -4674,8 +4674,8 @@
|
||||||
"removeSponsorshipSuccess": {
|
"removeSponsorshipSuccess": {
|
||||||
"message": "Sponsorship Removed"
|
"message": "Sponsorship Removed"
|
||||||
},
|
},
|
||||||
"ssoKeyConnectorUnavailable": {
|
"ssoKeyConnectorError": {
|
||||||
"message": "Unable to reach the Key Connector, try again later."
|
"message": "Key Connector error: make sure Key Connector is available and working correctly."
|
||||||
},
|
},
|
||||||
"keyConnectorUrl": {
|
"keyConnectorUrl": {
|
||||||
"message": "Key Connector URL"
|
"message": "Key Connector URL"
|
||||||
|
|
Loading…
Reference in New Issue