Seite 1 von 1

Username and password autofill?

Verfasst: Di 7. Jul 2009, 14:17
von Michael_S
Hi, I would like to use the Customer Management module to store customer for a product selector, the customer would pass through a number of steps (forms) and would enter his/her contact details on the last page if they would like to be contacted.

On the first step I would like to create the Customer entry in the database and would like to use a date stamp for the user name and password.

Is this possible using webEdition tags or will I need to use PHP?

Thanks,

Michael.

Re: Username and password autofill?

Verfasst: Di 7. Jul 2009, 14:54
von Michael_S
Ah, it's a simple answer...

<we:sessionField type="hidden" name="Username" autofill="true" />
<we:sessionField type="hidden" name="Password" autofill="true" />

Michael.

Re: Username and password autofill?

Verfasst: Di 7. Jul 2009, 14:59
von Liquid
I `m not sure if I understood it right, but I`ll give it a try.
Don `t think that it will work only with we:tags.

When you autofill Username and Password, I assume these are hidden fields.
So you could do something like:

Code: Alles auswählen

<form>
<input type="hidden" name="s[Username]" value="<?php echo time(); ?>">
<input type="hidden" name="s[Password]" value="<?php echo time(); ?>">
</form>
Edit: Or you do it that way ;-)

Re: Username and password autofill?

Verfasst: Di 7. Jul 2009, 15:20
von Creutzburg
There's a bug in WE 6.0.0.5, where the following template code

Code: Alles auswählen

<we:sessionField type="hidden" name="Password" autofill="true" />
produces the following HTML code:

Code: Alles auswählen

<input type="hidden" name="s[Username]" value="RANDOM_VALUE">
that means the password field becomes a hidden field with the name "s[Username]".

You have to edit the WebEdition source code to fix the bug. It's located at /webEdition/we/include/we_tags/we_tag_sessionField.inc.php in line 43.

Please change

Code: Alles auswählen

if($name="Username")
to

Code: Alles auswählen

if($name=="Username")
Hope that helps.

Regards,
Alex