Page 1 of 1

FEU enhanced passwords

Posted: Tue Oct 11, 2022 12:31 pm
by rooon
Hi all,

In a fresh cmsms 2.2.16 I did add the FEU 3.2.2 module.
All works fine with 1 group, 1 user prop and 1 user.

I'm using CgBetterForms templates for the Login and Logout.

The core:page starts with

Code: Select all

{strip}{process_pagedata}

{root_url assign="root_url"}
{get_current_url assign="page_url"}
{$home = (($page_alias === "home") || ($page_url|stripos:"/index.php" !== false))}
{title assign="main_title"}
{get_parent_alias alias=$page_alias assign=parent_alias}

{cms_module_hint module=FrontEndUsers logintemplate='App Login Form'}
{cms_module_hint module=FrontEndUsers logouttemplate='App Logout Href'}

{$feugroup = "Buurt"}
{$username = feu_smarty::get_current_username()}
{$uid = feu_smarty::get_userid($username)}

{* other stuff *}

{share_data scope=global
vars="root_url,page_url,home,main_title,parent_alias,feugroup,username,uid, ... "}

{/strip}<!doctype html>
Next, I added these settings in config.php

Code: Select all

$feu_disable_forgotpw = true;
$feu_disable_lostusername = true;
$feu_disable_rememberme = false;
$feu_min_passwordlength = 6;
$feu_enhanced_passwords = false;
Next, I closed all browser tabs, and cleared the cache folders.
I can't figure out why these config.php settings not having effect.

Somebody can help me out with this?

Thanks, Ronald

Re: FEU enhanced passwords

Posted: Tue Oct 11, 2022 2:27 pm
by DIGI3
FEU was abandoned by its author, and FEU 3 especially is very buggy. I'd recommend switching to MAMS, which is a fork of FEU 2, before you get too far in. Someone could probably help you with this issue but you'd just end up with more later.

Re: FEU enhanced passwords

Posted: Wed Oct 12, 2022 7:10 am
by velden
Everything what DIGI3 says plus:

Config entries have another form. E.g.:

Code: Select all

$config['feu_disable_forgotpw'] = true;

Re: FEU enhanced passwords

Posted: Wed Oct 12, 2022 9:32 am
by rooon
Thanks for your replies.

During installation of CMSMSExt (required for the MAMS module) there were errors.
For now I will try to write a plugin using sessions to implement a simple Front Users login form.

For the form I use BertterForms. Question: Is this module also end-of-live?

Re: FEU enhanced passwords

Posted: Wed Oct 12, 2022 10:24 am
by Jo Morg
rooon wrote: Wed Oct 12, 2022 9:32 am During installation of CMSMSExt (required for the MAMS module) there were errors.
Can you please elaborate? thx

Re: FEU enhanced passwords

Posted: Wed Oct 12, 2022 2:13 pm
by rooon
Dev on pc with Xampp for Windows, PHP 7.3.27
max_execution_time = 120 sec

I always use this in System32\drivers\etc\hosts:

Code: Select all

127.0.0.1   local.test
127.0.0.1   www.local.test
To reproduce the error I did install a new cmsms

1. Installed a fresh cmsms 2.2.16 in www.local.test/cms2test02/
2. Changed user languate from Dutch to English
3. Installed module CMSMSExt version 1.1.0.1

Result is a white page with error:

Code: Select all

Parse error: syntax error, unexpected 'string' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) in D:\xampp\htdocs\cms2test02\modules\CMSMSExt\lib\class.XTModule.php on line 52
Browsing back, then a white page with error:

Code: Select all

Parse error: syntax error, unexpected 'string' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) in D:\xampp\htdocs\cms2test02\modules\CMSMSExt\lib\class.XTModule.php on line 52
Again browsing back, then a white page with text:

Code: Select all

Notice
The versions displayed here represent the latest XML files uploaded to the CMSMS module repository. They may or may not represent the latest available versions. Additionally, the module repository may only contain modules released within the last few months

Use at Your Own Risk
The modules displayed here are contributed by both the CMSMS Developers and independent third parties. We make no guarantees that the modules available here are functional, tested, or compatible with your system. You are encouraged to read the information found in the help and about links for each module before attempting the installation.

Parse error: syntax error, unexpected 'string' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) in D:\xampp\htdocs\cms2test02\modules\CMSMSExt\lib\class.XTModule.php on line 52

Re: FEU enhanced passwords

Posted: Wed Oct 12, 2022 2:37 pm
by Jo Morg
Ah yes, you need PHP 7.4 to run the most recent versions of CMSMSExt, MAMS, etc. Even CMSMS will require PHP 7.4 as a minimum in next release. We are trying to have everything ready for at least PHP 8.0 as fast as we can, if not PHP 8.1 right away. However at that point we'll have to motivate 3rd party module developers to upgrade their modules to run in PHP 8.x too.
In any case I would go for PHP 7.4 for now on your development environment.

Re: FEU enhanced passwords

Posted: Wed Oct 12, 2022 6:58 pm
by rooon
I did an upgrade to Xampp PHP 8.1
CmsMS seems to work fine but BetterForms doesn't work anymore.

Do you have any suggestions how to create forms? By using a certain module, or in another way?

Re: FEU enhanced passwords

Posted: Wed Oct 12, 2022 7:55 pm
by rooon
On a Win Xampp platform with PHP 8.1
- BetterForms does not work anymore :(
- FormBuilder not having the features I would like.
- SmartForms seems to be the "new" BetterForms but after installing it gives this error

Code: Select all

Fatal error: Uncaught TypeError: CMSMSExt\XTModule::find_module_file(): Return value must be of type string, none returned in D:\xampp\htdocs\bvcms\modules\CMSMSExt\lib\class.XTModule.php:1964 Stack trace: #0 D:\xampp\htdocs\bvcms\modules\CMSMSExt\CMSMSExt.module.php(472): CMSMSExt\XTModule->find_module_file('js/common.js') #1 D:\xampp\htdocs\bvcms\admin\moduleinterface.php(79): CMSMSExt->GetHeaderHTML('defaultadmin') #2 {main} thrown in D:\xampp\htdocs\bvcms\modules\CMSMSExt\lib\class.XTModule.php on line 1964