mirror of
https://github.com/bitwarden/browser
synced 2026-01-31 00:33:33 +00:00
[PM-27086] Update deprecation comments
This commit is contained in:
@@ -82,7 +82,8 @@ describe("DesktopSetInitialPasswordService", () => {
|
||||
});
|
||||
|
||||
/**
|
||||
* @deprecated To be removed in PM-28143
|
||||
* @deprecated To be removed in PM-28143. When you remove this, check also if there are any imports/properties
|
||||
* in the test setup above that are now un-used and can also be removed.
|
||||
*/
|
||||
describe("setInitialPassword(...)", () => {
|
||||
// Mock function parameters
|
||||
|
||||
@@ -86,7 +86,8 @@ describe("WebSetInitialPasswordService", () => {
|
||||
});
|
||||
|
||||
/**
|
||||
* @deprecated To be removed in PM-28143
|
||||
* @deprecated To be removed in PM-28143. When you remove this, check also if there are any imports/properties
|
||||
* in the test setup above that are now un-used and can also be removed.
|
||||
*/
|
||||
describe("setInitialPassword(...)", () => {
|
||||
// Mock function parameters
|
||||
|
||||
@@ -50,7 +50,8 @@ export class DefaultSetInitialPasswordService implements SetInitialPasswordServi
|
||||
) {}
|
||||
|
||||
/**
|
||||
* @deprecated To be removed in PM-28143
|
||||
* @deprecated To be removed in PM-28143. When you remove this, also check for any objects/methods
|
||||
* in this default service that are now un-used and can also be removed.
|
||||
*/
|
||||
async setInitialPassword(
|
||||
credentials: SetInitialPasswordCredentials,
|
||||
|
||||
@@ -102,7 +102,8 @@ describe("DefaultSetInitialPasswordService", () => {
|
||||
});
|
||||
|
||||
/**
|
||||
* @deprecated To be removed in PM-28143
|
||||
* @deprecated To be removed in PM-28143. When you remove this, check also if there are any imports/properties
|
||||
* in the test setup above that are now un-used and can also be removed.
|
||||
*/
|
||||
describe("setInitialPassword(...)", () => {
|
||||
// Mock function parameters
|
||||
|
||||
@@ -364,6 +364,7 @@ export class InputPasswordComponent implements OnInit {
|
||||
return;
|
||||
}
|
||||
|
||||
// When you unwind the flag in PM-28143, also remove the ConfigService if it is un-used.
|
||||
const newApisWithInputPasswordFlagEnabled = await this.configService.getFeatureFlag(
|
||||
FeatureFlag.PM27086_UpdateAuthenticationApisForInputPassword,
|
||||
);
|
||||
@@ -394,6 +395,10 @@ export class InputPasswordComponent implements OnInit {
|
||||
return passwordInputResult;
|
||||
}
|
||||
|
||||
/*******************************************************************
|
||||
* The following code (within this `try`) to be removed in PM-28143
|
||||
*******************************************************************/
|
||||
|
||||
// 4. Create cryptographic keys and build a PasswordInputResult object
|
||||
const newMasterKey = await this.keyService.makeMasterKey(
|
||||
newPassword,
|
||||
|
||||
@@ -60,6 +60,7 @@ export default {
|
||||
getAllDecrypted: () => Promise.resolve([]),
|
||||
},
|
||||
},
|
||||
// Can remove ConfigService from component and stories in PM-28143 (if it is no longer used)
|
||||
{
|
||||
provide: ConfigService,
|
||||
useValue: {
|
||||
|
||||
Reference in New Issue
Block a user