1
sevak
2.2.3 create account bugs
  • 2005/8/28 3:22

  • sevak

  • Just popping in

  • Posts: 42

  • Since: 2004/4/12


I have installed 2.2.3 on websitehttp://www.bollywood.name
Level of strictness is default - strict only alphabet and number.

Select the level of strictness for username filtering
Bug 1
------
1.1 Click on register now

http://www.bollywood.name/modules/profile/register.php

1.2 type email, username and display name

1.3 now try any password and conform password that has not all non numeric character like.

abcd
abcd123r
abrfgt

All the time it gives error

"Sorry, your password must be at least 3 characters long"

Bug 2
-----
2.1 Now try all numeric password like
1234
123456
12345678
it goes to next screen
2.2 Click finish it sends activation email.Syntax of activation url is wrong. It is of type

http://www.bollywood.namehttp://www.bollywood.name/modules/profile/activate.php?op=actv&id=2&actkey=412665e1

it should be

http://www.bollywood.name/modules/profile/activate.php?op=actv&id=2&actkey=412665e1

Bug 3
-----
3.1 login as administrator and try changing email of admin. It says saved but it doesn't work

2
JMorris
Re: 2.2.3 create account bugs
  • 2005/8/28 3:56

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


Check the comments regarding the newest release. The issue with "Sorry, your password must be at least 3 characters long" has already been solved.

Link:
https://xoops.org/modules/news/article.php?storyid=2533
Insanity can be defined as "doing the same thing over and over and expecting different results."

Stupidity is not a crime. Therefore, you are free to go.

3
sevak
Re: 2.2.3 create account bugs
  • 2005/8/28 4:21

  • sevak

  • Just popping in

  • Posts: 42

  • Since: 2004/4/12


I think this error is coming from muliple places.I changed the code as instructed. Error still persists if I chose a password
abcd
abcd432
a564
etc

This is my authfactory.php after modification

<?php
class XoopsAuthFactory
{

    function 
XoopsAuthFactory()
    {
    }

    
/**
     * Get a reference to the only instance of authentication class
     * 
     * if the class has not been instantiated yet, this will also take 
     * care of that
     * 
     * @static
     * @return      object  Reference to the only instance of authentication class
     */
    
function &getAuthConnection()
    {
        static 
$auth_instance;        
        if (!isset(
$auth_instance)) {
            
$config_handler =& xoops_gethandler('config');
            
$criteria = new CriteriaCompo();
            
$criteria->add(new Criteria('conf_name''auth_method'));
            
$config =& $config_handler->getConfigs($criteria);             
            require_once 
XOOPS_ROOT_PATH.'/class/auth/auth.php';
    
/**
https://xoops.org/modules/news/article.php?storyid=2533&page=0
        
   if (!$config) { // If there is a config error, we use xoops
                $xoops_auth_method = 'xoops';  
            } else {
                $xoops_auth_method = $config[0]->getVar('conf_value');
            }
 **/

/** code added intead of above **/
if (!$config) { // If there is a config error, we use xoops
    
$xoops_auth_method 'xoops';
} else {
    
$xoops_auth_method $config[0]->getConfValueForOutput();
    if(!
is_readableXOOPS_ROOT_PATH.'/class/auth/auth_' $xoops_auth_method '.php')){
        
$xoops_auth_method 'xoops';
    }
}

            
$file XOOPS_ROOT_PATH.'/class/auth/auth_' $xoops_auth_method '.php';
            require_once 
$file;
            
$class 'XoopsAuth' ucfirst($xoops_auth_method);
            switch (
$xoops_auth_method) {
                case 
'xoops' :
                    
$dao =& $GLOBALS['xoopsDB']; 
                    break;
                case 
'ldap'  
                    
$dao null;
                    break;
            }
            
$auth_instance = new $class($dao);
        }
        return 
$auth_instance;
    }

}
?>

4
sevak
Re: 2.2.3 create account bugs
  • 2005/8/28 4:46

  • sevak

  • Just popping in

  • Posts: 42

  • Since: 2004/4/12


For time being I am choosing activate automatically. However a Fix for bug 1 and 2 will be nice. Thanks

5
sevak
Re: 2.2.3 create account bugs
  • 2005/8/28 4:49

  • sevak

  • Just popping in

  • Posts: 42

  • Since: 2004/4/12


I am sorry for putting mutiple reply as reply is not editable.
Automatically activating gives workaround for bug 2 for time being. Not for bug 1.
thanks

6
rowdie
Re: 2.2.3 create account bugs
  • 2005/8/28 5:04

  • rowdie

  • Just can't stay away

  • Posts: 846

  • Since: 2004/7/21


The fix for bug 1 is in the comments of the news article.

I'll repost it here to make it easier to see.

phppp wrote:
modules/profile/register.php
line #75

if (!empty($xoopsModuleConfig['minpass']) && [b][color=FF0000]strlen[/color][/b]($_POST['pass']) <$xoopsModuleConfig['minpass']) {

7
sevak
Re: 2.2.3 create account bugs
  • 2005/8/28 5:59

  • sevak

  • Just popping in

  • Posts: 42

  • Since: 2004/4/12


Thanks! Bug 1 Fixed!

8
sudhaker
Re: 2.2.3 create account bugs
  • 2005/8/28 6:45

  • sudhaker

  • Not too shy to talk

  • Posts: 117

  • Since: 2003/2/6 2


Bug 3 is a feature. Go to Admin Panel >> Prefrences >> Extended Profiles >> General Settings and look for Allow users to change email address? and select Yes and Save it

Cheers,
Sudhaker Raj
............

9
sudhaker
Re: 2.2.3 create account bugs
  • 2005/8/28 6:49

  • sudhaker

  • Not too shy to talk

  • Posts: 117

  • Since: 2003/2/6 2


But as an Administrator, I should be able to change email address, no matter what is the system setting. Isn't it?
Sudhaker Raj
............

10
kapeman
Re: 2.2.3 create account bugs
  • 2005/8/31 12:55

  • kapeman

  • Just popping in

  • Posts: 87

  • Since: 2005/5/3 1


Quote:

rowdie wrote:
The fix for bug 1 is in the comments of the news article.

I'll repost it here to make it easier to see.

phppp wrote:
modules/profile/register.php
line #75

if (!empty($xoopsModuleConfig['minpass']) && [b][color=FF0000]strlen[/color][/b]($_POST['pass']) <$xoopsModuleConfig['minpass']) {


That fixed my issue as well.

Login

Who's Online

167 user(s) are online (103 user(s) are browsing Support Forums)


Members: 0


Guests: 167


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits