PluginProbe ʕ •ᴥ•ʔ
Firebase Authentication / 1.7.0
Firebase Authentication v1.7.0
1.7.0 trunk 1.0.0 1.1.1 1.1.2 1.1.3 1.1.4 1.2.0 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.8 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.5.9 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6 1.6.7 1.6.8 1.6.9
firebase-authentication / admin / partials / account / login / register.php
firebase-authentication / admin / partials / account / login Last commit date
register.php 2 days ago verify-password.php 2 days ago
register.php
147 lines
1 <?php
2 /**
3 * Customer accounts tab screens
4 *
5 * @package firebase-authentication
6 */
7
8 if ( ! defined( 'ABSPATH' ) ) {
9 exit;
10 }
11
12 /**
13 * Show registration form in accounts tab
14 *
15 * @return void
16 */
17 function mo_firebase_auth_register_ui() {
18 update_option( 'mo_firebase_authentication_new_registration', 'true' );
19 $current_user = wp_get_current_user();
20 ?>
21 <form name="f" method="post" action="">
22 <input type="hidden" name="option" value="mo_firebase_authentication_register_customer" />
23 <?php wp_nonce_field( 'mo_fb_register_form', 'mo_fb_register_form_nonce' ); ?>
24 <div class="" style="width:100%">
25 <div class="mo_table_layout">
26 <h3 style="margin-top: 0px;">Register with miniOrange<small style="font-size: x-small;"> [OPTIONAL]</small></h3>
27 <p style="font-size:14px;"><strong style="font-weight: 600;">Why should I register? </strong></p>
28 <div id="help_register_desc" style="background: aliceblue; padding: 10px 10px 10px 10px; border-radius: 10px;font-size: 12px;">
29 You should register so that in case you need help, we can help you with step by step instructions.
30 <b>You will also need a miniOrange account to upgrade to the premium version of the plugins.</b> We do not store any information except the email that you will use to register with us.
31 </div>
32 </p>
33 <table class="mo_settings_table">
34 <tr>
35 <td><strong><font color="#FF0000">*</font>Email:</strong></td>
36 <td><input class="mo_table_textbox3" type="email" name="email"
37 required placeholder="person@example.com"
38 value="<?php echo esc_attr( get_option( 'mo_firebase_authentication_admin_email' ) ); ?>" />
39 </td>
40 </tr>
41 <tr class="hidden">
42 <td><b><font color="#FF0000">*</font>Website/Company Name:</b></td>
43 <td><input class="" type="text" name="company"
44 required placeholder="Enter website or company name"
45 value="<?php echo isset( $_SERVER['SERVER_NAME'] ) ? esc_url( wp_unslash( $_SERVER['SERVER_NAME'] ) ) : ''; //phpcs:ignore -- Using esc_url() instead of esc_url_raw() ?>"/></td>
46 </tr>
47 <tr class="hidden">
48 <td><b>&nbsp;&nbsp;First Name:</b></td>
49 <td><input class="" type="text" name="fname"
50 placeholder="Enter first name" value="<?php echo esc_attr( $current_user->user_firstname ); ?>" /></td>
51 </tr>
52 <tr class="hidden">
53 <td><b>&nbsp;&nbsp;Last Name:</b></td>
54 <td><input class="" type="text" name="lname"
55 placeholder="Enter last name" value="<?php echo esc_attr( $current_user->user_lastname ); ?>" /></td>
56 </tr>
57
58 <tr class="hidden">
59 <td><b>&nbsp;&nbsp;Phone number :</b></td>
60 <td><input class="" type="text" name="phone" pattern="[\+]?([0-9]{1,4})?\s?([0-9]{7,12})?" id="phone" title="Phone with country code eg. +1xxxxxxxxxx" placeholder="Phone with country code eg. +1xxxxxxxxxx" value="<?php echo esc_attr( get_option( 'mo_firebase_authentication_admin_phone' ) ); ?>" />
61 This is an optional field. We will contact you only if you need support.</td>
62 </tr>
63 </tr>
64 <tr class="hidden">
65 <td></td>
66 <td>We will call only if you need support.</td>
67 </tr>
68 <tr>
69 <td><strong><font color="#FF0000">*</font>Password:</strong></td>
70 <td><input class="mo_table_textbox3" required type="password"
71 name="password" placeholder="Choose your password (Min. length 8)" /></td>
72 </tr>
73 <tr>
74 <td><strong><font color="#FF0000">*</font>Confirm Password:</strong></td>
75 <td><input class="mo_table_textbox3" required type="password"
76 name="confirmPassword" placeholder="Confirm your password" /></td>
77 </tr>
78 <tr>
79 <td>&nbsp;&nbsp;</td>
80 <td>&nbsp;&nbsp;</td>
81 </tr>
82 <tr>
83 <td>&nbsp;&nbsp;</td>
84 <td><input type="submit" name="submit" value="Register" class="button button-primary button-large" style="margin-right: 15%;"/><input type="button" name="mo_firebase_authentication_goto_login" id="mo_firebase_authentication_goto_login" value="Already have an account?" class="button button-primary button-large" /></td>
85 </tr>
86 </table>
87 <!-- <div style="width: 50%; margin:auto;">
88 <br><input type="submit" name="submit" value="Register" class="button button-primary button-large" style="margin-right: 15%;"/>
89 <input type="button" name="mo_firebase_authentication_goto_login" id="mo_firebase_authentication_goto_login" value="Already have an account?" class="button button-primary button-large" /><br>
90 </div> -->
91 <br>
92 </div>
93 </div>
94 </form>
95 <form name="f1" method="post" action="" id="mo_firebase_authentication_goto_login_form">
96 <?php wp_nonce_field( 'mo_firebase_authentication_goto_login_form', 'mo_firebase_authentication_goto_login_form_field' ); ?>
97 <input type="hidden" name="option" value="mo_firebase_authentication_goto_login"/>
98 </form>
99 <script>
100 jQuery("#phone").intlTelInput();
101 jQuery('#mo_firebase_authentication_goto_login').click(function () {
102 jQuery('#mo_firebase_authentication_goto_login_form').submit();
103 } );
104 </script>
105 <?php
106 }
107
108 /**
109 * Show logged in customer info in account tab
110 *
111 * @return void
112 */
113 function mo_firenase_auth_show_customer_info() {
114 ?>
115 <div class="mo_table_layout">
116 <h6 style="margin-top: 0px;">Thank you for registering with miniOrange.</h6><br>
117
118 <table border="1" style="background-color:#FFFFFF; border:1px solid #CCCCCC; border-collapse: collapse; padding:0px 0px 0px 10px; margin:2px; width:85%">
119 <tr>
120 <td style="width:45%; padding: 10px;">miniOrange Account Email</td>
121 <td style="width:55%; padding: 10px;"><?php echo esc_attr( get_option( 'mo_firebase_authentication_admin_email' ) ); ?></td>
122 </tr>
123 <tr>
124 <td style="width:45%; padding: 10px;">Customer ID</td>
125 <td style="width:55%; padding: 10px;"><?php echo esc_attr( get_option( 'mo_firebase_authentication_admin_customer_key' ) ); ?></td>
126 </tr>
127 </table>
128 <br /><br />
129
130 <table>
131 <tr>
132 <td>
133 <form name="f1" method="post" action="" id="mo_firebase_authentication_goto_login_form">
134 <input type="hidden" value="change_miniorange" name="option"/>
135 <?php wp_nonce_field( 'change_miniorange_form', 'change_miniorange_form_nonce' ); ?>
136 <input type="submit" value="Change Email Address" class="button button-primary button-large"/>
137 </form>
138 </td><td>
139 </td>
140 </tr>
141 </table>
142 <br>
143 </div>
144
145 <?php
146 }
147