28, May 2012

Hi ! Lost Password method hash , md5 ? - webmaster forum

 
Webdigity webmaster forums
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  Php User Class
Topic: Hi ! Lost Password method hash , md5 ?
« previous next »
Pages: [1] Print
Instabuck - The easy way to sell digital products online

Author Topic: Hi ! Lost Password method hash , md5 ?  (Read 595 times)
I crack Photoshop!
*
Posts: 3
22 credits
Members referred : 0


« on: Jun 22, 2011, 12:40:30 pm »

Hi my code lost password how to method use password md5, hash how to?:

I'am italian my name luigi.

My code custom php user class.



<?php

require_once 'lib/allibrary.php';


   if (!empty($_POST['invia'])){
            
   $getUser = $allib->query("SELECT * FROM users WHERE Email = '".$_POST["email"]."'");
   if(mysql_num_rows($getUser)==1)
   {
   
            $temp_pass = $allib->randomPass(10);
            $row = mysql_fetch_assoc($getUser);
         
            
            $query = $allib->query("UPDATE users SET password='".md5($temp_pass)."', active=1 WHERE Email='".$row['Email']."'");   
               
            $email = "My Password new : ".$temp_pass."";
            
            if(mail($row['email'], 'Password your account', $email))
            {
               $msg = 'Password Resettata , verificare nella posta elletronica.';
               $msg .="".$temp_pass."";
            }
            else {
               $error = 'Failed sending email';
            }
         }
         else {
            $error = 'There is no member to match your email.';
         }
      
   }
?>

<p class="title2">Recupera Password</p>
<?php   if ( isset ( $error ) )   { echo '         <p class="error">' . $error . '</p>' . "\n";   }   ?>
<?php   if ( isset ( $msg ) )   { echo '         <p class="msg">' . $msg . '</p>' . "\n";   } else {?>


   <form action="<?php echo $_SERVER['PHP_SELF']?>" method="post">
   
      <input type="hidden" name="_submit_check" value="1"/>
      
      <table align="center" width="99%">
         
         <tr>
            <td><table width="100%" border="0">
             ? <tr>
             ?  ? <td>Email</td>
             ?  ? <td><input class="input" type="text" id="email" name="email" size="32" value="<?php if(isset($_POST['email'])){echo $_POST['email'];}?>" /></td>
          ?  ?  ? </tr>
             ? <tr>
             ?  ? <td><input type="submit" name="invia" value="Recupera" ? alt="submit" title="submit" /></td>
             ?  ? <td>.</td>
          ?  ?  ? </tr>
          ?  ? </table></td>
         </tr>
         
      </table>
   </form>
   
<?php } ?>

I crack Photoshop!
*
Posts: 3
22 credits
Members referred : 0


« Reply #1 on: Jun 22, 2011, 12:41:44 pm »

No entry for login my username e password non accept page login.php

How to?
I crack Photoshop!
*
Posts: 3
22 credits
Members referred : 0


« Reply #2 on: Jun 22, 2011, 02:54:04 pm »

ok, problem resolved .

thanks
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=12569
Tags : php5 Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  Php User Class
Topic: Hi ! Lost Password method hash , md5 ?
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 12:03:18 am





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 62.814
Total Topics: 11.028
Total Members: 21.451
Tutorials : 58
Resources : 929
Designs : 395
Latest Member: sobbin

141 Guests, 2 Users online :

10 users online today:




Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2012 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.