File

core/user/user-totp-revoke.component.ts

Metadata

Index

Methods
Inputs
Outputs

Constructor

constructor(users: UserService, alert: AlertService)
Parameters :
Name Type Optional
users UserService No
alert AlertService No

Inputs

user
Type : IUser

Outputs

revoke
Type : EventEmitter

Methods

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>

results matching ""

    No results matching ""