core/user/user-totp-revoke.component.ts
selector | c8y-user-totp-revoke |
templateUrl | ./user-totp.component.html |
Methods |
|
Inputs |
Outputs |
constructor(users: UserService, alert: AlertService)
|
|||||||||
Parameters :
|
user |
Type : IUser
|
revoke |
Type : EventEmitter
|
Async revoke |
revoke()
|
Returns :
any
|
<button
type="button"
class="btn btn-default"
[popover]="confirm"
[popoverTitle]="'Revoke TOTP secret' | translate"
#popover="bs-popover"
placement="bottom"
>
<i c8yIcon="key"></i> {{ 'Revoke TOTP secret' | translate }}
</button>
<ng-template #confirm>
<p class="m-b-16" translate>
This action will revoke the user's stored TOTP secret which will require a new setup.
</p>
<button
title="{{ 'Cancel' | translate }}"
type="button"
class="btn btn-default"
(click)="popover.hide()"
translate
>
Cancel
</button>
<button
title="{{ 'Revoke' | translate }}"
type="button"
class="btn btn-danger"
(click)="revoke(); popover.hide()"
translate
>
Revoke
</button>
</ng-template>