Changeset 1420 for trunk/wp-login.php
- Timestamp:
- 06/13/2004 04:14:58 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/wp-login.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-login.php
r1369 r1420 183 183 <input type="hidden" name="action" value="retrievepassword" /> 184 184 <label><?php _e('Login:') ?> <input type="text" name="user_login" id="user_login" value="" size="12" /></label><br /> 185 <label><?php _e('E mail:') ?> <input type="text" name="email" id="email" value="" size="12" /></label><br />185 <label><?php _e('E-mail:') ?> <input type="text" name="email" id="email" value="" size="12" /></label><br /> 186 186 <input type="submit" name="Submit2" value="OK" class="search"> 187 187 … … 204 204 $user_email = $user_data->user_email; 205 205 206 if (!$user_email || $user_email != $_POST['email']) die(sprintf(__('Sorry, that user does not seem to exist in our database. Perhaps you have the wrong username or e mail address? <a href="%s">Try again</a>.'), 'wp-login.php?action=lostpassword'));206 if (!$user_email || $user_email != $_POST['email']) die(sprintf(__('Sorry, that user does not seem to exist in our database. Perhaps you have the wrong username or e-mail address? <a href="%s">Try again</a>.'), 'wp-login.php?action=lostpassword')); 207 207 // Generate something random for a password... md5'ing current time with a rand salt 208 208 $user_pass = substr((MD5("time" . rand(1,16000))), 0, 6); … … 216 216 217 217 if ($m == false) { 218 echo "<p> The email could not be sent.<br />\n";219 echo " Possible reason: your host may have disabled the mail() function...</p>";218 echo "<p><?php _e('The e-mail could not be sent.') ?><br />\n"; 219 echo "<?php _e('Possible reason: your host may have disabled the mail() function...') ?></p>"; 220 220 die(); 221 221 } else { 222 echo "<p>The email was sent successfully to $user_login's email address.<br /> 223 <a href='wp-login.php' title='Check your email first, of course'>Click here to login!</a></p>"; 222 echo "<p><?php _e('The e-mail was sent successfully to $user_login's e-mail address.') ?><br /> 223 <?php _e('<a href='wp-login.php' title=\'Check your e-mail first, of course\'>Click here to login!</a> 224 ') ?></p>"; 224 225 // send a copy of password change notification to the admin 225 226 mail(get_settings('admin_email'), '[' . get_settings('blogname') . "] Password Lost/Change", "Password Lost and Changed for user: $user_login");
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)