# Web UI

### Enabling OTP for a User

To generate an MFA OTP for a specific user, run the pycollector command line tool with the following options:

```bash
/opt/collector-core/bin/pycollector user --display-otp <username>
```

e.g. to generate a code for the <support@hypersec.io> user account:

```bash
/opt/collector-core/bin/pycollector user --display-otp support@hypersec.io
```

This will display a URL that can be used by Authentication Applications such as Authy and a barcode which can be directly scanned into the applications.

**Note**: Running this command will overwrite any existing MFA secret.

<figure><img src="https://1537627201-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIeQBo8pSOQxxjibSlMb4%2Fuploads%2FLdJZnEygfuis5V91egFv%2Fconsole_auth_token_gen.png?alt=media&#x26;token=ad64a51a-690f-4617-b1a3-88b47ef0ae29" alt=""><figcaption></figcaption></figure>

### Adding an Account to Authy

To add the account to Authy, click the + button. Scan the barcode displayed on the terminal.

### Displaying the OTP Barcode and URL

To display the barcode for adding the OTP to an Authentication app for a specific user use the following command:

```bash
/opt/collector-core/bin/pycollector user --display-otp <username>
```

e.g.:

```bash
/opt/collector-core/bin/pycollector user --display-otp support@hypersec.io
```

This barcode can then be scanned into an authentication application such as Authy.

### Removing OTP for a User

To remove the OTP requirement for a specific user, run the following command:

```bash
/opt/collector-core/bin/pycollector user --display-otp <username>
```

e.g.:

```bash
/opt/collector-core/bin/pycollector user --display-otp support@hypersec.io
```

This will delete the OTP secret and remove the requirement for this specific user to use a OTP for authentication.
