# Changelog

## v6.0 (19th Feb 2023)

New Features:

* Module is ready for latest versions of WHMCS, as well as both PHP 7.4 and PHP 8.1 (requires latest ioncube encoders)
* Added MSG91 as a new gateway provider
* Added a new configurable option which adds a ‘Phone Verification’ link (translatable) in the client area navbar
* Added a notification message to the client profile (admin side) which shows the client’s status of verification
* Added the option to override Twilio’s voice call verification (using Twimlets) refer to the documentation for more information
* Added the option to override MSG91’s OTP template for custom messages - refer to the documentation for more information
* Added the option to override Vonage’s brand name
* Lagom theme optimization and support
* Added module settings link in the admin sidebar

Enhancements:

* Enhanced the default UI/UX of the module
* All verification codes/OTPs are now 6 digits long (except for CustomDevKit to support compatibility)
* Enhanced the module settings by grouping similar settings together, and hiding/showing required fields depending on gateway provider selected
* Enhanced the syncing mechanism between WHMCS and the PVS module (on client signup, on client add, and on client edit)
* Customizing the beginning and end content of the SMS is now added to the language files for easier translations (removed from module settings)
* Manually adding accounts to PVS module, adds the customer’s phone number too (previously, the customer had to type in the number again)
* Enhanced the tables on the verified and unverified pages (column headers)
* Depending on Verification Strategy, the CTA on the success (after customer verifies their number) shows either the show cart, or continue, respectively
* If customer navigates to the module page after verification, he is shown a “You Are Already Verified” message
* Additional enhancements to the admin test settings page
* Additional enhancements to the admin sidebar menu
* Updated intl-tel-input version
* Updated legacy references of Nexmo to Vonage
* Enhanced Vonage Gateway icon
* Code enhancements and general maintenance

Bugfixes:

* Fixed a bug when admin un-verifies an existing verified account, it should reset the client attempts counter
* Fixed a bug with Twilio Voice Calls verification saying the number too fast
* Fixed a bug with client profile status message
* Fixed an issue with additional JS being loaded in the wrong pages
* Fixed admin test settings for MessageBird gateway provider

Language File Changes:

* Enhanced existing strings
* Added otpmessage - for the SMS verification message
* Added clientareadropdownlinklabel - for the client area navbar dropdown

## v5.0.3 (14th Aug 2020)

* \[FIX] Updated the script to use our new licensing server labs.layer.ae - you need to update to the latest version to avoid licensing issues.

## v5.0.2 (1st Mar 2020)

* \[FEATURE] Added MessageBird as a new OTP Gateway Provider
* \[FEATURE] Added a permanent notification box to show if client verified their mobile number or not on the Client Profile Page
* \[IMPROVEMENT] A completely revamped UX for the customer, with new UI components
* \[IMPROVEMENT] PVS now works together with WHMCS's new number system and format (+\[CC].\[NUMBER] format)
* \[IMPROVEMENT] PVS now supports 4 & 6 digits for verification codes (depending on gateway provider)
* \[IMPROVEMENT] Added balance overview for Clickatell to PVS overview page
* \[IMPROVEMENT] Updated english.php language file
* \[IMPROVEMENT] Additional help text is added to tooltips on module's settings/config page
* \[BUGFIX] Fixed issue with links opening new tabs in HTTP instead of HTTPS when clicking on a client's id, name, or email
* \[BUGFIX] Fixed issue with verification codes
* \[BUGFIX] Fixed issue with input fields on order forms conflict
* \[BUGFIX] Fixed issue with entering numbers from numeric keypad on adding/updating phone number page
* \[BUGFIX] Fixed issue with entering numbers from numeric keypad on verification code page
* \[BUGFIX] Fixed issue with backspace (editing phone number, or editing verification code)

## v5.0.1 (26th Feb 2020)

* \[FEATURE] Added MessageBird as a new OTP Gateway Provider
* \[FEATURE] Added a permanent notification box to show if client verified their mobile number or not on the Client Profile Page
* \[IMPROVEMENT] A completely revamped UX for the customer, with new UI components
* \[IMPROVEMENT] PVS now works together with WHMCS's new number system and format (+\[CC].\[NUMBER] format)
* \[IMPROVEMENT] PVS now supports 4 & 6 digits for verification codes (depending on gateway provider)
* \[IMPROVEMENT] Added balance overview for Clickatell to PVS overview page
* \[IMPROVEMENT] Updated english.php language file
* \[IMPROVEMENT] Additional help text is added to tooltips on module's settings/config page
* \[BUGFIX] Fixed issue with links opening new tabs in HTTP instead of HTTPS when clicking on a client's id, name, or email
* \[BUGFIX] Fixed issue with verification codes
* \[BUGFIX] Fixed issue with input fields on order forms conflict

## v5.0.0 (25th Feb 2020)

* \[FEATURE] Added MessageBird as a new OTP Gateway Provider
* \[FEATURE] Added a permanent notification box to show if client verified their mobile number or not on the Client Profile Page
* \[IMPROVEMENT] A completely revamped UX for the customer, with new UI components
* \[IMPROVEMENT] PVS now works together with WHMCS's new number system and format (+\[CC].\[NUMBER] format)
* \[IMPROVEMENT] PVS now supports 4 & 6 digits for verification codes (depending on gateway provider)
* \[IMPROVEMENT] Added balance overview for Clickatell to PVS overview page
* \[IMPROVEMENT] Updated english.php language file
* \[IMPROVEMENT] Additional help text is added to tooltips on module's settings/config page
* \[BUGFIX] Fixed issue with links opening new tabs in HTTP instead of HTTPS when clicking on a client's id, name, or email
* \[BUGFIX] Fixed issue with verification codes

## v4.4.5 (17th Apr 2018)

* Made the module compatible with WHMCS7.5, and PHP7.1 and 7.2 - with latest Ioncube loaders.
* Code Clean Up

## v4.4.4 (12th Apr 2018)

* Made the module compatible with WHMCS7.5, and PHP5.6, 7.0, 7.1, and 7.2
* Supports the latest Ioncube loaders
* Code Clean Up

## v4.4.3 (29th Apr 2017)

* Added mass actions to mass add and remove all accounts for verification
* Added single accounts add/remove to PVS for verification
* Added the option to delete entry from PVS for verified or unverified accounts (not requiring them to verify their account)
* Code Clean Up

## v4.4.2 (26th Apr 2017)

* Added new Clickatell SMS API integration
* Kept Legacy Clickatell SMS API integration for those who are still using the legacy system
* Added the ability to override the brand name for Nexmo - previously clients could not verify their accounts if WHMCS's site name is longer than 18 characters
* Added a new function to allow admin to test API settings from the admin side, this allows the admin to verify that accounts can get verified and sms/calls are actually going through
* Minor improvements to the user experience/process
* Code Clean Up

## v4.4.1 (20th Oct 2016)

* Fixed a bug that prevented the PVS module to work correctly

## v4.4 (18th Oct 2016)

* Made the module compatible with WHMCS7, and PHP7
* Improved the user experience/process
* Customer now inputs his mobile number in local format, and the system automatically prepends the country code
* Fixed an issue with OnPageChange strategy, previously it did not allow clients to open a ticket
* Added OnPageChangeCC strategy, which is more lenient when compared to OnPageChange - this is mainly for providers who accept credit card payments
* Implemented a new redirection method after the clients' update their phone number
* Add an Overview page on the admin side to see quick statistics
* Improved the admin pages of verified accounts, and unverified accounts - including a new quick search filter
* Added multiple language (multilang) support for the module
* customdevkit.php has been renamed to customdevkit\_default.php (to not overwrite original customdevkit.php if is in use)
* Changed wording of sentences, to further help the customer
* Code Clean Up

## v4.3 (28th Jun 2016)

* Fixed a conflict that prevented some installations from using the module
* Code Clean Up
* Additional compatibility tests on older versions of PHP

## v4.2 (3rd Mar 2016)

* Added a Custom Dev Kit, to allow you to integrate other SMS/API providers (this can be found as an additional file in the module directory, called customdevkit.php with an example)
* Added a field to set the maximum amount of client tries
* Code Clean Up
* Additional compatibility tests on older versions of PHP
