Forums / General Questions / Turn off password

Turn off password

Locked

Views: 2,134

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
3 Dec 2006, 8:47 PM
#1
scottb avatar

scottb

Zen Follower

Join Date:
Mar 2006
Location:
St. Louis area
Posts:
205
Plugin Contributions:
0

Turn off password

I wish to turn off the need for a password to be entered to log in.

I have a specific need for this on one site. There is no payment information being sent or saved.

How do I turn off the password requirement?

Thanks,

Scott

3 Dec 2006, 9:08 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Turn off password

Um .... the password also protects the customer's personal information.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

3 Dec 2006, 9:22 PM
#3
scottb avatar

scottb

Zen Follower

Join Date:
Mar 2006
Location:
St. Louis area
Posts:
205
Plugin Contributions:
0

Re: Turn off password

I just imported 1,281 customers from a Miva database. I have no passwords for them.

3 Dec 2006, 9:33 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Turn off password

If you simply want to allow customers to log in using their blank password, you could start by altering the password_funcs.php function file:```
function zen_validate_password($plain, $encrypted) {
if (zen_not_null($plain) && zen_not_null($encrypted)) {
// split apart the hash / salt
$stack = explode(':', $encrypted);

  if (sizeof($stack) != 2) return false;

  if (md5($stack[1] . $plain) == $stack[0]) {
    return true;
  }

[B] } elseif ($plain =='' && $encrypted == '') {
return true;[/B]

}

return false;

}

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

4 Dec 2006, 4:28 PM
#5
scottb avatar

scottb

Zen Follower

Join Date:
Mar 2006
Location:
St. Louis area
Posts:
205
Plugin Contributions:
0

Re: Turn off password

I was able to get the passwords. :D

Thanks for your help.

30 Jan 2007, 5:12 PM
#6
scottb avatar

scottb

Zen Follower

Join Date:
Mar 2006
Location:
St. Louis area
Posts:
205
Plugin Contributions:
0

Re: Turn off password

I have another site that the owner does not want a password. He only wants the email for login.

Changing the code to this did not work

 function zen_validate_password($plain, $encrypted) {
    if (zen_not_null($plain) && zen_not_null($encrypted)) {
// split apart the hash / salt
      $stack = explode(':', $encrypted);

      if (sizeof($stack) != 2) return false;

      if (md5($stack[1] . $plain) == $stack[0]) {
        return true;
      }
[B]    } elseif ($plain =='' && $encrypted == '') {
      return true;[/B]
    }

    return false;
  }
30 Jan 2007, 5:17 PM
#7
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: Turn off password

they plan on storing users information based on a single login credential ( a public one at that )

you did explain how they are setting themselves up right?

Zen cart PCI compliant Hosting

30 Jan 2007, 5:31 PM
#8
scottb avatar

scottb

Zen Follower

Join Date:
Mar 2006
Location:
St. Louis area
Posts:
205
Plugin Contributions:
0

Re: Turn off password

Yes I did.