osCmax v2.5 User Manual
Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Create account - password

This is a discussion on Create account - password within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; Originally Posted by pgmarshall I believe you have found a bug ... Google code shows that in r351 the /* ...

      
  1. #11
    Member
    Join Date
    Nov 2009
    Posts
    41
    Rep Power
    0


    Default Re: Create account - password

    Quote Originally Posted by pgmarshall View Post
    I believe you have found a bug ...

    Google code shows that in r351 the /* comment tags were removed from admin/create_account.php which will mean that the password fields are displayed.

    Also in admin/create_account_process.php line 123 is commented out which is the bit that inserts the password you enter in the field at the bottom of the create account page.

    If you want to use the password you enter then simply uncomment line 123 and 361 and comment out line 360.

    If you want to use the auto-generated password then re-instate the /* and */ removed in r351 which enclosed the password section.

    Can you report this as a bug in the BugTracker and I will fix soon.

    The functionality probably should be that if you enter a password then it is used and sent to the client otherwise the system generates a random one for you and sends that.

    Regards,
    Hi
    I want to use the auto generated password and I tried to find where to re-instate the /* and */ removed in r351 which enclosed the password section but I cant figure out where in admin/create_account.php I need to re-instate the /* and */ to. I downloaded previous versions to look a their admin/create_account.php to see what part was commented out to remove the password section but I couldn't see it. Any ideas? Thanks.

  2. #12
    osCMax Development Team
    pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    2,678
    Rep Power
    49


    Smile Re: Create account - password

    The fix has been applied to the v2.1 code base here but for completeness ...

    Replace: (at the bottom of admin/includes/modules/account_details.php)

    Code:
    <?php
      if (!$is_read_only) {
    ?>
      <tr>
        <td class="formAreaTitle"><br><?php echo CATEGORY_PASSWORD; ?></td>
      </tr>
      <tr>
        <td class="main"><table border="0" width="100%" cellspacing="0" cellpadding="2" class="formArea">
          <tr>
            <td class="main"><table border="0" cellspacing="0" cellpadding="2">
              <tr>
                <td class="main" width="170">&nbsp;<?php echo ENTRY_PASSWORD; ?></td>
                <td class="main">&nbsp;
    <?php
        if ($error) {
          if ($entry_password_error) {
            echo tep_draw_password_field('password') . '&nbsp;' . ENTRY_PASSWORD_ERROR;
          } else {
            echo PASSWORD_HIDDEN . tep_draw_hidden_field('password') . tep_draw_hidden_field('confirmation');
          }
        } else {
          echo tep_draw_password_field('password') . '&nbsp;' . ENTRY_PASSWORD_TEXT;
        }
    ?></td>
             </tr>
    <?php
        if ( (!$error) || ($entry_password_error) ) {
    ?>
              <tr>
                <td class="main" width="170">&nbsp;<?php echo ENTRY_PASSWORD_CONFIRMATION; ?></td>
                <td class="main">&nbsp;
    <?php
          echo tep_draw_password_field('confirmation') . '&nbsp;' . ENTRY_PASSWORD_CONFIRMATION_TEXT;
    ?></td>
              </tr>
    <?php
        }
    ?>
    With:

    Code:
    <?php /*
      if (!$is_read_only) {
    ?>
      <tr>
        <td class="formAreaTitle"><br><?php echo CATEGORY_PASSWORD; ?></td>
      </tr>
      <tr>
        <td class="main"><table border="0" width="100%" cellspacing="0" cellpadding="2" class="formArea">
          <tr>
            <td class="main"><table border="0" cellspacing="0" cellpadding="2">
              <tr>
                <td class="main" width="170">&nbsp;<?php echo ENTRY_PASSWORD; ?></td>
                <td class="main">&nbsp;
    <?php
        if ($error) {
          if ($entry_password_error) {
            echo tep_draw_password_field('password') . '&nbsp;' . ENTRY_PASSWORD_ERROR;
          } else {
            echo PASSWORD_HIDDEN . tep_draw_hidden_field('password') . tep_draw_hidden_field('confirmation');
          }
        } else {
          echo tep_draw_password_field('password') . '&nbsp;' . ENTRY_PASSWORD_TEXT;
        }
    ?></td>
             </tr>
    <?php
        if ( (!$error) || ($entry_password_error) ) {
    ?>
              <tr>
                <td class="main" width="170">&nbsp;<?php echo ENTRY_PASSWORD_CONFIRMATION; ?></td>
                <td class="main">&nbsp;
    <?php
          echo tep_draw_password_field('confirmation') . '&nbsp;' . ENTRY_PASSWORD_CONFIRMATION_TEXT;
    ?></td>
              </tr>
    <?php
        }
    ?>
    */ ?>
    Regards,
    pgmarshall
    _______________________________

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Can't Create Account
    By bethbud in forum osCmax v2 Installation issues
    Replies: 7
    Last Post: 04-21-2010, 09:00 AM
  2. Changing database account/password
    By tcshadow in forum osCmax v2 Installation issues
    Replies: 2
    Last Post: 06-17-2008, 09:26 AM
  3. create account
    By jschafer52 in forum osCMax v2 Features Discussion
    Replies: 1
    Last Post: 06-15-2007, 07:38 AM
  4. Add user name and password to new account email
    By fridgemags in forum osCMax v1.7 General Mods Discussion
    Replies: 2
    Last Post: 06-08-2005, 06:33 PM
  5. Create Account,Checkout,My Account, Language Pictures probs!
    By Mikey in forum osCommerce 2.2 Installation Help
    Replies: 0
    Last Post: 03-08-2004, 10:20 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •