Customize a User Login Page problem (1 post)

  1. syh43
    Posted 4 years ago #


    Question 1: I go to phpmyadmin to change the admin UserID number to 0 instead of 1, but when I try to login, it is keep mention that username invalid, anyone can help? I unable to found the answer? How to set the numbering of ID start from 0 instead of 1?

    Question 2:
    I try to customize a user login page, everything is working well if login correctly,
    but how do I coding that when member login fail, it will automatic show a sentence that "Error: Invalid Username or Password" on current page instead of redirect the member to original wordpress http://domain.com/wp-login.php

    Below is my code:

    <h3>Please Login before you able to check your profile</h3>
    <form action="<?php echo get_option('home'); ?>/wp-login.php" method="post">
    <input type="text" name="log" id="log" value="<?php echo wp_specialchars(stripslashes($user_login), 1) ?>" size="20" /></br>
    <input type="password" name="pwd" id="pwd" size="20" /></br>
    <input type="submit" name="submit" value="Submit" class="button" />
    <label for="rememberme"><input name="rememberme" id="rememberme" type="checkbox" checked="checked" value="forever" /> Remember me</label>
    <input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>" />

    Looking forward somebody to help me solve this 2 problem.

Topic Closed

This topic has been closed to new replies.

About this Topic