mirror of
https://github.com/bitwarden/jslib
synced 2025-12-15 07:43:45 +00:00
[Reset Password v1] Update Temp Password (#446)
* [Reset Password v1] Update Temp Password * Updating router to protected for child classes to access
This commit is contained in:
5
common/src/models/request/updateTempPasswordRequest.ts
Normal file
5
common/src/models/request/updateTempPasswordRequest.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { OrganizationUserResetPasswordRequest } from './organizationUserResetPasswordRequest';
|
||||
|
||||
export class UpdateTempPasswordRequest extends OrganizationUserResetPasswordRequest {
|
||||
masterPasswordHint: string;
|
||||
}
|
||||
@@ -15,6 +15,7 @@ export class ProfileResponse extends BaseResponse {
|
||||
key: string;
|
||||
privateKey: string;
|
||||
securityStamp: string;
|
||||
forcePasswordReset: boolean;
|
||||
organizations: ProfileOrganizationResponse[] = [];
|
||||
providers: ProfileProviderResponse[] = [];
|
||||
providerOrganizations: ProfileProviderOrganizationResponse[] = [];
|
||||
@@ -32,6 +33,7 @@ export class ProfileResponse extends BaseResponse {
|
||||
this.key = this.getResponseProperty('Key');
|
||||
this.privateKey = this.getResponseProperty('PrivateKey');
|
||||
this.securityStamp = this.getResponseProperty('SecurityStamp');
|
||||
this.forcePasswordReset = this.getResponseProperty('ForcePasswordReset');
|
||||
|
||||
const organizations = this.getResponseProperty('Organizations');
|
||||
if (organizations != null) {
|
||||
|
||||
Reference in New Issue
Block a user