Commit 2dcbef10 authored by David Burke's avatar David Burke

Add blank manage mfa component for tns

parent 2f91b6ab
Pipeline #64532323 passed with stages
in 13 minutes and 44 seconds
......@@ -19,6 +19,7 @@ import { ResetPasswordEffects } from "./reset-password/reset-password.effects";
import { ResetPasswordVerifyEffects } from "./reset-password/reset-password-verify/reset-password-verify.effects";
import { SetPasswordEffects } from "./reset-password/set-password/set-password.effects";
import { ManageBackupCodeEffects } from "./manage-backup-code/manage-backup-code.effects";
import { ManageMfaComponent } from "./manage-mfa/manage-mfa.component";
import { ManageMfaContainer } from "./manage-mfa/manage-mfa.container";
import { RegisterContainer } from "./register/register.container";
import { RegisterComponent } from "./register/register.component";
......@@ -67,6 +68,7 @@ export const COMPONENTS = [
ManageBackupCodeComponent,
PasswordInputComponent,
ManageMfaContainer,
ManageMfaComponent,
SplitMfaLinkPipe
];
......
import { Component, Input, Output, EventEmitter } from "@angular/core";
import { FormGroupState } from "ngrx-forms";
import { DomSanitizer, SafeUrl } from "@angular/platform-browser";
import { ActivateMFAStep } from "./manage-mfa.interfaces";
import { IEnableMfaForm } from "./manage-mfa.reducer";
@Component({
selector: "app-manage-mfa",
templateUrl: "./manage-mfa.component.html",
styleUrls: []
})
export class ManageMfaComponent {
private _uri: string;
@Input() step: ActivateMFAStep;
@Input() form: FormGroupState<IEnableMfaForm>;
@Input() errors: string[] | null;
@Input() mfaRequired: boolean;
@Input()
set uri(value: string) {
this._uri = value;
if (value) {
this.qrCode = null;
} else {
this.qrCode = null;
}
}
get uri() {
return this._uri;
}
qrCode: string | null;
@Output() generateMfa = new EventEmitter();
@Output() verifyMfa = new EventEmitter();
@Output() forwardStep = new EventEmitter();
@Output() deactivateMfa = new EventEmitter();
constructor(private _sanitizer: DomSanitizer) {}
getURI(): SafeUrl {
return this._sanitizer.bypassSecurityTrustUrl(this._uri);
}
}
......@@ -33,7 +33,6 @@
"src/app/account/change-password/password-input/password-input.component.ts",
"src/app/account/manage-backup-code/manage-backup-code.component.ts",
"src/app/account/manage-backup-code/download-backup-code/download-backup-code.component.ts",
"src/app/account/manage-mfa/manage-mfa.component",
"src/app/account/reset-password/reset-password-verify/reset-password-verify.component.ts",
"src/app/account/reset-password/set-password/set-password.component.ts",
"src/app/group/group-detail.component.ts",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment