Username and password autofill?

Michael_S
Senior Member
Beiträge: 160
Registriert: Mi 4. Feb 2004, 02:39
Wohnort: London / UK
Kontaktdaten:

Username and password autofill?

Beitragvon Michael_S » Di 7. Jul 2009, 14:17

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.
Production Area
London, UK
http://productionarea.com

Michael_S
Senior Member
Beiträge: 160
Registriert: Mi 4. Feb 2004, 02:39
Wohnort: London / UK
Kontaktdaten:

Re: Username and password autofill?

Beitragvon Michael_S » Di 7. Jul 2009, 14:54

Ah, it's a simple answer...

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

Michael.
Production Area
London, UK
http://productionarea.com

Liquid
Senior Member
Beiträge: 1172
Registriert: Do 8. Jan 2004, 12:31
Wohnort: Karlsruhe

Re: Username and password autofill?

Beitragvon Liquid » Di 7. Jul 2009, 14:59

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 ;-)
Gruß Liquid

Creutzburg
Senior Member
Beiträge: 425
Registriert: Do 1. Jan 1970, 02:00
Wohnort: Dresden
Kontaktdaten:

Re: Username and password autofill?

Beitragvon Creutzburg » Di 7. Jul 2009, 15:20

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
http://www.xport.de – Internet-Agentur für Hotels
http://www.domainpreisvergleich.de – Domain-Preisvergleich inkl. Verfügbarkeits-Check – ist meine Wunschdomain noch frei, und wo registriere ich sie am günstigsten?


Zurück zu „Customer Management“

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 4 Gäste