Customize a User Login Page problem
-
Hello,
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 https://domain.com/wp-login.phpBelow is my code:
<h2>Login</h2>
<h3>Please Login before you able to check your profile</h3>
<form action=”<?php echo get_option(‘home’); ?>/wp-login.php” method=”post”>
<label>Username:</label>
<input type=”text” name=”log” id=”log” value=”<?php echo wp_specialchars(stripslashes($user_login), 1) ?>” size=”20″ /></br>
<label>Password:</label>
<input type=”password” name=”pwd” id=”pwd” size=”20″ /></br>
<input type=”submit” name=”submit” value=”Submit” class=”button” />
<p>
<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’]; ?>” />
</p>
</form>Looking forward somebody to help me solve this 2 problem.
- The topic ‘Customize a User Login Page problem’ is closed to new replies.