How to use 2FA on custom login form in Modal popup
-
Hi
how 2FA work with custom login form. Which hooks we can use.here is the code of login form.
<form id="login" action="login" method="post"> <p class="status"></p> <p class="login-username"> <label for="username"><?php echo esc_html__('Username or Email Address','mydm'); ?></label> <i class="fa fa-user-o" aria-hidden="true"></i> <input id="username" type="text" name="username" placeholder="<?php echo esc_attr__('Username','mydm'); ?>" required> </p> <p class="login-password" style="position:relative"> <label for="password"><?php echo esc_html__('Password','mydm'); ?></label> <i class="fa fa-pencil-square-o" aria-hidden="true"></i> <input id="password" type="password" name="password" placeholder="<?php echo esc_attr__('Password','mydm'); ?>" maxlength="25" required> <span class="show-password-input"></span> </p> <div class="row-buttons"> <p class="login-submit"> <input class="submit_button" type="submit" value="<?php echo esc_attr__('Login','mydm'); ?>" name="submit"> </p> <?php if ( get_option('users_can_register')) { ?> <p class="btn-register-p"> <a class="btn btn-register" id="register-modal"><?php echo esc_html__('Register','mydm'); ?></a> </p> <?php } else { ?> <p class="um-notice err text-center"><?php echo esc_html__('Registration is currently disabled','mydm'); ?></p> <?php } ?> </div> <div class="clearfix"></div> <p class="login-remember"> <a class="lost" href="<?php echo wp_lostpassword_url(); ?>"><?php echo esc_html__('Lost your password?','mydm'); ?></a> </p> <?php wp_nonce_field( 'ajax-login-nonce', 'security' ); ?> </form>
Thanks
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to use 2FA on custom login form in Modal popup’ is closed to new replies.