Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Lite

 AfterLogic Forum : AfterLogic WebMail Lite
Subject Topic: Two-factor authentication Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
mlnorth
Newbie
Newbie


Joined: 25 October 2018
Location: Sweden
Online Status: Offline
Posts: 9
Posted: 25 October 2018 at 10:42pm | IP Logged Quote mlnorth

Hello!

I can't find a module for two-factor-authentication. It seems however to exist in webmail lite 7 as a plugin.

Where can I find it or is it implemented?

/Regards Mats
Back to Top View mlnorth's Profile Search for other posts by mlnorth
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 26 October 2018 at 1:15am | IP Logged Quote Igor

This functionality wasn't implemented for v8 yet, but we plan to provide such a module in the nearest future.

--
Regards,
Igor, Afterlogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 07 December 2018 at 1:48am | IP Logged Quote Igor

Two-factor authentication module is now available. Please note that you'll need to upgrade to the latest version 8.2.4 of WebMail Lite if you wish to use this feature.

--
Regards,
Igor, Afterlogic Support

Back to Top View Igor's Profile Search for other posts by Igor
 
Gimli
Newbie
Newbie


Joined: 03 March 2018
Location: Canada
Online Status: Offline
Posts: 10
Posted: 20 February 2019 at 11:18am | IP Logged Quote Gimli

I'm trying to install the two-factor authentication module but it's not working. I'm following the instructions at https://afterlogic.com/docs/webmail-pro-8/installation/adding-modules but the following error mesages pop up when running "php composer.phar update":

Your requirements could not be resolved to an installable set of packages.

Problem 1
    - The requested package afterlogic/aurora-module-two-factor-auth-master could not be found in any version, there may be a typo in the package name.
Problem 2
    - intervention/image 2.4.2 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
    - intervention/image 2.4.2 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
    - intervention/image 2.4.1 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
    - intervention/image 2.4.0 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
    - afterlogic/aurora-framework 0.9.35 requires intervention/image ^2.4 -> satisfiable by intervention/image[2.4.2, 2.4.0, 2.4.1>.
    - Installation request for afterlogic/aurora-framework 0.9.x -> satisfiable by afterlogic/aurora-framework[0.9.35>.



For reference, in modules.json, I added the line "afterlogic/aurora-module-two-factor-auth-master": "0.9.x" in the "require" section and {"type": "git", "url":"https://github.com/afterlogic/aurora-module-two-factor-auth"} in the "repositories" section.

I've looked through the referenced troubleshooting links but haven't come up with anything that would help. I'm on version 8.2.11 of Webmail Lite PHP.
Back to Top View Gimli's Profile Search for other posts by Gimli
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 21 February 2019 at 1:31am | IP Logged Quote Igor

Hello,

The entry that needs to be added is afterlogic/aurora-module-two-factor-auth, not afterlogic/aurora-module-two-factor-auth-master. Also, make sure you have FileInfo PHP extension installed.

And in fact, I'm pretty sure that TwoFactorAuth module was already there in 8.2.11, check if you have modules/TwoFactorAuth directory.

--
Regards,
Igor, Afterlogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
Gimli
Newbie
Newbie


Joined: 03 March 2018
Location: Canada
Online Status: Offline
Posts: 10
Posted: 22 February 2019 at 12:33pm | IP Logged Quote Gimli

Hi! Thanks for the response.

So "afterlogic/aurora-module-two-factor-auth" is included in the default modules.json file but there is no such directory under the "modules" folder. There's one named "TwoFactorAuth" that seems to contain the same files as the zip file available on GitHub but the interface doesn't show the additional tab to enable it in user settings so it doesn't appear to load, possibly due to the inconsistency between the directory name and the module name?
Back to Top View Gimli's Profile Search for other posts by Gimli
 
Gimli
Newbie
Newbie


Joined: 03 March 2018
Location: Canada
Online Status: Offline
Posts: 10
Posted: 22 February 2019 at 12:51pm | IP Logged Quote Gimli

So I removed the unnecessary lines from modules.json and fixed the FileInfo thing. Re-ran "php composer.phar update" and it completely broke my Webmail Lite with the following errors:

C:\WebMailPHP8>php composer.phar update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 1 install, 5 updates, 6 removals
- Removing psr/simple-cache (0.3.0)
- Removing psr/cache (1.0.1)
- Removing phpixie/slice (3.2.3)
- Removing phpixie/filesystem (3.2.2)
- Removing phpixie/cache (3.2.1)
- Removing intervention/image (2.4.2)
- Updating afterlogic/aurora-dev-tools (0.9.9 => 0.9.10):     Update failed (The .git directory is missing from dev/, see https://getcomposer.org/commit-deps for more information)
    Would you like to try reinstalling the package instead [yes>? y
- Removing afterlogic/aurora-dev-tools (0.9.9)
- Installing afterlogic/aurora-dev-tools (0.9.10): Cloning tags/0.9.10 from cache
- Installing masterexploder/phpthumb (2.1): Downloading (100%)
- Downgrading afterlogic/aurora-framework (0.9.35 => 0.9.22):     Update failed (The .git directory is missing from system/, see https://getcomposer.org/commit-deps for more information)
    Would you like to try reinstalling the package instead [yes>? y
- Removing afterlogic/aurora-framework (0.9.35)
- Installing afterlogic/aurora-framework (0.9.22): Cloning tags/0.9.22 from cache
- Updating afterlogic/aurora-module-contacts (0.9.13 => 0.9.14):     Update failed (The .git directory is missing from modules/Contacts/, see https://getcomposer.org/commit-deps for more information)
    Would you like to try reinstalling the package instead [yes>? y
- Removing afterlogic/aurora-module-contacts (0.9.13)
- Installing afterlogic/aurora-module-contacts (0.9.14): Cloning tags/0.9.14 from cache
- Updating afterlogic/aurora-module-personal-contacts (0.9.3 => 0.9.4):     Update failed (The .git directory is missing from modules/PersonalContacts/, see https://getcomposer.org/commit-deps for more information)
    Would you like to try reinstalling the package instead [yes>? y
- Removing afterlogic/aurora-module-personal-contacts (0.9.3)
- Installing afterlogic/aurora-module-personal-contacts (0.9.4): Cloning tags/0.9.4 from cache
- Updating afterlogic/aurora-module-mail-notes-plugin (0.9.8 => 0.9.10):     Update failed (The .git directory is missing from modules/MailNotesPlugin/, see https://getcomposer.org/commit-deps for more information)
    Would you like to try reinstalling the package instead [yes>? y
- Removing afterlogic/aurora-module-mail-notes-plugin (0.9.8)
- Installing afterlogic/aurora-module-mail-notes-plugin (0.9.10): Cloning tags/0.9.10 from cache
Package wimg/php-compatibility is abandoned, you should avoid using it. Use phpcompatibility/php-compatibility instead.
Writing lock file
Generating autoload files
> [ -d data > || mkdir data
'[' is not recognized as an internal or external command,
operable program or batch file.
> Aurora\Installer::preConfigSafe
PHP Fatal error: Uncaught Error: Class 'Aurora\System\Router' not found in C:\WebMailPHP8\modules\Core\Module.php:63
Stack trace:
#0 C:\WebMailPHP8\system\Module\AbstractModule.php(219): Aurora\Modules\Core\Module->init()
#1 C:\WebMailPHP8\system\Module\Manager.php(261): Aurora\System\Module\AbstractModule->initialize()
#2 C:\WebMailPHP8\system\Module\Manager.php(511): Aurora\System\Module\Manager->loadModule('Core', 'C:\\WebMailPHP8/...')
#3 C:\WebMailPHP8\system\Module\Manager.php(549): Aurora\System\Module\Manager->GetModulesPaths()
#4 C:\WebMailPHP8\system\Module\Manager.php(233): Aurora\System\Module\Manager->GetModulePath('Core')
#5 C:\WebMailPHP8\system\Module\Manager.php(625): Aurora\System\Module\Manager->loadModule('Core')
#6 C:\WebMailPHP8\system\Module\Manager.php(90): Aurora\System\Module\Manager->GetModule('Core')
#7 C:\WebMailPHP8\system\Api.php(200): Aurora\System\Module\Manager->init()
#8 C:\WebMailPHP8\system\Installer.php(98): Aurora\System\Api::Init()
#9 C:\WebMailPHP8\system\Installer.php(69): Aurora\Inst in C:\WebMailPHP8\modules\Core\Module.php on line 63

Fatal error: Uncaught Error: Class 'Aurora\System\Router' not found in C:\WebMailPHP8\modules\Core\Module.php:63
Stack trace:
#0 C:\WebMailPHP8\system\Module\AbstractModule.php(219): Aurora\Modules\Core\Module->init()
#1 C:\WebMailPHP8\system\Module\Manager.php(261): Aurora\System\Module\AbstractModule->initialize()
#2 C:\WebMailPHP8\system\Module\Manager.php(511): Aurora\System\Module\Manager->loadModule('Core', 'C:\\WebMailPHP8/...')
#3 C:\WebMailPHP8\system\Module\Manager.php(549): Aurora\System\Module\Manager->GetModulesPaths()
#4 C:\WebMailPHP8\system\Module\Manager.php(233): Aurora\System\Module\Manager->GetModulePath('Core')
#5 C:\WebMailPHP8\system\Module\Manager.php(625): Aurora\System\Module\Manager->loadModule('Core')
#6 C:\WebMailPHP8\system\Module\Manager.php(90): Aurora\System\Module\Manager->GetModule('Core')
#7 C:\WebMailPHP8\system\Api.php(200): Aurora\System\Module\Manager->init()
#8 C:\WebMailPHP8\system\Installer.php(98): Aurora\System\Api::Init()
#9 C:\WebMailPHP8\system\Installer.php(69): Aurora\Inst in C:\WebMailPHP8\modules\Core\Module.php on line 63


Note that the TwoFactorAuth module wasn't called even though the original line "afterlogic/aurora-module-two-factor-auth" is still in modules.json
Back to Top View Gimli's Profile Search for other posts by Gimli
 
Gimli
Newbie
Newbie


Joined: 03 March 2018
Location: Canada
Online Status: Offline
Posts: 10
Posted: 22 February 2019 at 1:29pm | IP Logged Quote Gimli

Alright so I restored my server to before I started playing with it and, after much digging, I finally realized that all that's needed to enable the module is to open the file "data/settings/modules/TwoFactorAuth.config.json" and edit
"{
     "Disabled": [
          true,
          "bool"
     ],"

to

"{
     "Disabled": [
          false,
          "bool"
     ],"

This would be great information to put in the documentation at page https://afterlogic.com/docs/webmail-lite-8/configuring-webmail/two-factor-authentication" instead of directions for the System Admin to install a module that's already present by default.
Back to Top View Gimli's Profile Search for other posts by Gimli
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 25 February 2019 at 1:02am | IP Logged Quote Igor

Thank you for the update. And yes, we'll definitely reflect that in the documentation; initially, the module was not included in the product, but it's no longer required to install the module additionally.

-
Regards,
Igor, Afterlogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide