2011-12-09 17:01:56 +00:00
|
|
|
<?php
|
|
|
|
/**
|
2012-08-14 18:05:45 +00:00
|
|
|
* Change password form
|
|
|
|
*
|
|
|
|
* @author WooThemes
|
|
|
|
* @package WooCommerce/Templates
|
|
|
|
* @version 1.6.4
|
2011-12-09 17:01:56 +00:00
|
|
|
*/
|
2012-08-14 18:05:45 +00:00
|
|
|
|
2012-10-15 10:57:58 +00:00
|
|
|
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|
|
|
|
2011-12-09 17:01:56 +00:00
|
|
|
global $woocommerce;
|
|
|
|
?>
|
|
|
|
|
2013-06-11 14:59:54 +00:00
|
|
|
<?php wc_print_messages(); ?>
|
2011-12-09 17:01:56 +00:00
|
|
|
|
2012-01-06 17:14:31 +00:00
|
|
|
<form action="<?php echo esc_url( get_permalink(woocommerce_get_page_id('change_password')) ); ?>" method="post">
|
2011-12-09 17:01:56 +00:00
|
|
|
|
|
|
|
<p class="form-row form-row-first">
|
2012-10-16 09:45:33 +00:00
|
|
|
<label for="password_1"><?php _e( 'New password', 'woocommerce' ); ?> <span class="required">*</span></label>
|
2011-12-09 17:01:56 +00:00
|
|
|
<input type="password" class="input-text" name="password_1" id="password_1" />
|
|
|
|
</p>
|
|
|
|
<p class="form-row form-row-last">
|
2012-10-16 09:45:33 +00:00
|
|
|
<label for="password_2"><?php _e( 'Re-enter new password', 'woocommerce' ); ?> <span class="required">*</span></label>
|
2011-12-09 17:01:56 +00:00
|
|
|
<input type="password" class="input-text" name="password_2" id="password_2" />
|
|
|
|
</p>
|
|
|
|
<div class="clear"></div>
|
2012-08-14 18:05:45 +00:00
|
|
|
|
2012-10-16 09:45:33 +00:00
|
|
|
<p><input type="submit" class="button" name="change_password" value="<?php _e( 'Save', 'woocommerce' ); ?>" /></p>
|
2012-08-14 18:05:45 +00:00
|
|
|
|
2013-06-05 13:43:24 +00:00
|
|
|
<?php $woocommerce->get_helper( 'nonce' )->nonce_field('change_password')?>
|
2011-12-09 17:01:56 +00:00
|
|
|
<input type="hidden" name="action" value="change_password" />
|
2012-08-14 18:05:45 +00:00
|
|
|
|
2011-12-09 17:01:56 +00:00
|
|
|
</form>
|