Categories: Vicidial

How to – Setup Two Factor Authentication (2FA) on your ViciDial system

How to – Setup Two Factor Authentication (2FA) on your ViciDial system

This article will go over how to setup two factor authentication on your Vicidial system using the phone method. Later on I will add the SMS and Email methods.

Step 1 – Create the 2FA settings container

First we need to create the 2FA settings container that we will need to choose in system settings when we enable two factor authentication. Below is an example of how to setup a container for a phone call auth:

Step 2 – Set an email and mobile phone on the admin user

You must make sure to add an email and mobile phone to the admin user you are saying 2FA for or you will lock yourself out of the system.

Step 3 – Enable two factor authentication on system settings

The next thing we need to do is turn this feature on and set a couple variables needed for it to work. To do this go to Admin then system settings as shown below:

Now when you hit submit, it’s going to turn on 2FA and if you didn’t set it up correctly you will be locked out of the system for good or until you fix it via MySQL with the following code:

mysql -p
> use asterisk
> UPDATE system_settings SET two_factor_auth_hours='0';

If you did everything correctly you should see this when you try to login:

Hopefully this has helped you guys set this up with less headache than I went through.

Chris aka carpenox

carpenox

Recent Posts

How to – Fix “WARNING[2204]: acl.c:890 resolve_first: Unable to lookup ‘SERVER_EXTERNAL_IP'”

How to - Fix "WARNING[2204]: acl.c:890 resolve_first: Unable to lookup 'SERVER_EXTERNAL_IP'" This error is the…

3 days ago

How to – Upgrade any Leap ViciBox install to Leap 15.6

How to - Upgrade any Leap ViciBox install to Leap 15.6 A lot of people…

1 week ago

How to – Debug Webphones for ViciDial

How to - Debug Webphones for ViciDial I get asked several times a day in…

1 week ago

How to – Set Up Load Balanced Phones and Calling for ViciDial

How to - Set Up Load Balanced Phones and Calling for ViciDial Step 1: Ensure…

2 weeks ago

How to – Renew your certbot SSL cert when it fails

How to - Renew your certbot SSL cert when it fails enewing a Let's Encrypt…

2 weeks ago

Introducing the New and Improved Full White Label Theme for ViciDial 2025 Edition by CyburDial

Introducing the New and Improved Full White Label Theme for ViciDial 2025 Edition by CyburDial…

3 weeks ago

This website uses cookies.