[ic] Re: Auto-create of user failed

Joachim Leidinger interchange-users@icdevgroup.org
Thu Oct 10 10:16:02 2002


racke@linuxia.de wrote:
> Joachim Leidinger writes:
> 
>> Hi list,
>> I got the error message
>> -------- snip ----------
>> 217.235.129.219 5CBW99QX:217.235.130.253 - [10/October/2002:13:04:59 
>> +0200] ieos /cgi-bin/ieos/process.html Safe: Auto-create of user 
>> failed. at (eval 6996) line 1.
>> >
>> >  die errmsg("Auto-create of user failed.");
>> >
>> -------- snip ----------
>> But that user with the username "U04657" was created into the userdb 
>> table and I can see the information like address, street, etc. from 
>> that user. What are the possible causes of the above error message?
> 
> 
> Any more related entries in the error log ? It is possible that
> the (auto)login fails after the database entry has been created.

Yes!

------- snip from the catalog error.log -----------
217.235.129.219 5CBW99QX:217.235.130.253 - [10/October/2002:13:04:59 
+0200] ieos /cgi-bin/ieos/process.html Denied attempted login by user 
'U04657' with incorrect password
217.235.129.219 5CBW99QX:217.235.130.253 - [10/October/2002:13:04:59 
+0200] ieos /cgi-bin/ieos/process.html Safe: Auto-create of user failed. 
at (eval 6996) line 1.
------- snip from the catalog error.log -----------

I've in my log_transaction


[if type=explicit compare=`
                 return 1 if ! $Session->{logged_in} or 
$Session->{login_table} ne 'userdb';
                 return 0;
                 `]
         [if session logged_in]
                 [userdb function=logout clear=0 clear_cart=0]
         [/if]
         [tmp auto_create]1[/tmp]
         [if type=explicit compare=|
                 [userdb
                         function=new_account
                                 assign_username=1
                                         password='A[value zip]'
                                                 verify='A[value zip]'
                 ]
                 |]
                 [seti mv_autocreate]
                         mv_username=[data session username]
                         mv_password=[value zip]
                 [/seti]
                 Auto-created user [data session username].
         [else]
         Auto-create of user failed with [data session username] and 
[value zip].
         [perl] die errmsg("Auto-create of user failed."); [/perl]
         [/else]
         [/if]
[/if]

Hmmm....it seems to me,

                 [seti mv_autocreate]
                         mv_username=[data session username]
                         mv_password=[value zip]
                 [/seti]

should be as

                 [seti mv_autocreate]
                         mv_username=[data session username]
                         mv_password=A[value zip]
                 [/seti]

Right?

Thank you very much for your help! :-)

Joachim

-- 
Hans-Joachim Leidinger | Dipl.-Phys.Ing. Entwicklung eCommerce
[leidinger@bpanet.de]
Black Point Arts Internet Solutions GmbH
http://www.bpanet.de