verify-password.php
72 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Contains function to display login form |
| 4 | * |
| 5 | * @package firebase-authentication |
| 6 | */ |
| 7 | |
| 8 | /** |
| 9 | * Login form UI |
| 10 | * |
| 11 | * @return void |
| 12 | */ |
| 13 | function mo_firebase_auth_verify_password_ui() { |
| 14 | ?> |
| 15 | <form name="f" method="post" action=""> |
| 16 | <input type="hidden" name="option" value="mo_firebase_authentication_verify_customer" /> |
| 17 | <?php wp_nonce_field( 'mo_fb_login_form', 'mo_fb_login_form_nonce' ); ?> |
| 18 | <div class="mo_firebase_auth_card" style="width:100%"> |
| 19 | <!-- <div id="toggle1" class="mo_panel_toggle"> --> |
| 20 | <h3>Login with miniOrange</h3> |
| 21 | <!-- </div> --> |
| 22 | <p style="font-size: 12px; font-weight: 550;">It seems you already have an account with miniOrange. Please enter your miniOrange email and password.<br/> <a href="#mo_firebase_authentication_forgot_password_link">Click here if you forgot your password?</a> |
| 23 | </p> |
| 24 | |
| 25 | <table class="mo_settings_table"> |
| 26 | <tr> |
| 27 | <td><strong><font color="#FF0000">*</font>Email:</strong></td> |
| 28 | <td><input class="mo_table_textbox3" type="email" name="email" |
| 29 | required placeholder="person@example.com" |
| 30 | value="<?php echo esc_attr( get_option( 'mo_firebase_authentication_admin_email' ) ); ?>" /></td> |
| 31 | </tr> |
| 32 | <tr> |
| 33 | <td><strong><font color="#FF0000">*</font>Password:</strong></td> |
| 34 | <td><input class="mo_table_textbox3" required type="password" |
| 35 | name="password" placeholder="Enter your password" /></td> |
| 36 | </tr> |
| 37 | <tr> |
| 38 | <td> </td> |
| 39 | <td> </td> |
| 40 | </tr> |
| 41 | <tr> |
| 42 | <td> </td> |
| 43 | <td><input type="submit" name="submit" value="Login" |
| 44 | class="button button-primary button-large" /><input type="button" name="back-button" id="mo_firebase_authentication_back_button" onclick="document.getElementById('mo_firebase_authentication_change_email_form').submit();" value="Back" class="button button-primary button-large" style="margin-left: 20%;" /></td> |
| 45 | </tr> |
| 46 | </table> |
| 47 | <br> |
| 48 | <!-- <div style="margin-bottom: 20px;"> |
| 49 | <div style="width: 50%; margin:0 auto;"> |
| 50 | <input type="submit" name="submit" value="Login" |
| 51 | class="button button-primary button-large" /> |
| 52 | |
| 53 | <input type="button" name="back-button" id="mo_firebase_authentication_back_button" onclick="document.getElementById('mo_firebase_authentication_change_email_form').submit();" value="Back" class="button button-primary button-large" style="margin-left: 20%;" /></div></div> --> |
| 54 | </div> |
| 55 | </form> |
| 56 | <form id="mo_firebase_authentication_change_email_form" method="post" action=""> |
| 57 | <input type="hidden" name="option" value="mo_firebase_authentication_change_email" /> |
| 58 | <?php wp_nonce_field( 'mo_firebase_authentication_change_email_form', 'mo_firebase_authentication_change_email_form_nonce' ); ?> |
| 59 | </form> |
| 60 | |
| 61 | <!-- <form name="f" method="post" action="" id="mo_firebase_authentication_forgotpassword_form"> |
| 62 | <input type="hidden" name="option" value="mo_firebase_authentication_forgot_password_form_option"/> |
| 63 | </form> --> |
| 64 | <script> |
| 65 | jQuery("a[href=\"#mo_firebase_authentication_forgot_password_link\"]").click(function(){ |
| 66 | window.open('https://login.xecurify.com/moas/idp/resetpassword'); |
| 67 | //jQuery("#mo_firebase_authentication_forgotpassword_form").submit(); |
| 68 | }); |
| 69 | </script> |
| 70 | <?php |
| 71 | } |
| 72 |