LLA Reloaded + Ajax + php CHEK
-
I use ajax validation there is a (PHP) code with an error message
I want to add there a limit countinghow to add validation in code
function auth_user_login($user_login, $password, $login) { $info = array(); $info['user_login'] = $user_login; $info['user_password'] = $password; $info['remember'] = true; $user_signon = wp_signon( $info, false ); if ( is_wp_error($user_signon) ){ // // ?? Limit Login Attempts Reloaded how to put error records here ?check ? // echo json_encode(array('loggedin'=>false, 'message'=>__('Wrong username or password.'))); } else { wp_set_current_user($user_signon->ID); echo json_encode(array('loggedin'=>true, 'message'=>__($login.' successful, redirecting...'))); } die(); }
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘LLA Reloaded + Ajax + php CHEK’ is closed to new replies.