Tags/topics: 
1
Answers
Vote up!
1
Vote down!

Guest Login Default in fields

I would like to have the login automatically populate an already registered guest username and password. Is there a way to default the login fields with this already created account? Any help would be appreciated.

Asked by: dspock
on June 13, 2012

Comments

Not really sure what you're talking about or if it has anything to do with Drupal Commerce at all. Additionally, there's no way to autopopulate a password field, as passwords are salted and then hashed such that there's no way to reverse engineer them to find the actual password to set on a form. Can you elaborate any more in a comment here?

- Ryan Szrama on June 13, 2012

Basically I have product that is priced in tiers.) I don't want to allow anyone access to the site without logging in to see said product. Which i can then control what product is viewed by what account they have. I wanted to auto populate the login fields like i have seen on other sites with a guest account.

- dspock on June 14, 2012

1 Answer

Vote up!
2
Vote down!

This could be achieved with a theme preprocess function, this definitely isn't 'commerce' related because it's just a matter of customizing the login form. You might look at this page for some direction in how to do that, it will require some understanding of FormAPI. http://drupal.org/node/19855

Answer by: Aaron Dudenhofer
Posted: Jun 14, 2012