Skip to content

Commit

Permalink
Disable login form validation (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor authored Jul 19, 2023
1 parent 0d7644a commit f5398bb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions auto-login.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ function o1_auto_login_add_filter() {

if ( defined( 'AUTO_LOGIN_USER' ) ) {
add_filter( 'authenticate', 'o1_auto_login', 10, 3 );
add_action( 'login_footer', function () {
echo '<script>document.getElementById("loginform").setAttribute("novalidate", "");</script>';
}, 10, 0 );
}
}

Expand Down

0 comments on commit f5398bb

Please sign in to comment.