# propertyhive/1.4.50/templates/account/login-form.php

Property Hive, version 1.4.50. 47 lines.

- Page: https://pluginprobe.com/plugins/propertyhive/1.4.50/code/templates/account/login-form.php
- Raw: https://pluginprobe.com/plugins/propertyhive/1.4.50/raw/templates/account/login-form.php
- Modified: 2017-05-22T15:22:20+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/propertyhive/1.4.50/code/templates/account/login-form.php#L10-L20`.

```php
<?php
/**
 * Outputs the login form allowing users access to their account
 *
 * This template can be overridden by copying it to yourtheme/propertyhive/account/login-form.php.
 *
 * @author      PropertyHive
 * @package     PropertyHive/Templates
 * @version     1.0.0
 */

if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
?>

<form name="ph_login_form" class="propertyhive-form login-form" action="" method="post">
 	
    <div id="loginError" style="display:none;" class="alert alert-danger alert-box">
        <?php _e( 'Invalid details provided. Please try again', 'propertyhive' ); ?>
    </div>

    <?php 
        do_action( 'propertyhive_login_form_start' );

        ph_form_field( 'email_address', 
            array( 
                'type' => 'email',
                'label' => __( 'Email Address', 'propertyhive' ),
                'required' => true
            )
        );

        ph_form_field( 'password', 
            array( 
                'type' => 'password',
                'label' => __( 'Password', 'propertyhive' ),
                'required' => true
            )
        );

        do_action( 'propertyhive_login_form' );
    ?>

    <input type="submit" value="<?php _e( 'Login', 'propertyhive' ); ?>">

    <?php do_action( 'propertyhive_login_form_end' ); ?>

</form>
```
