1 year ago

Conditional Validation for LoginController

Posted 1 year ago by Aiden-IPI


I am looking for a method to apply the conditional validation after few login attempts.


  • The system needs to validate the username and password are not blank and valid for the first 3 attempts.
  • After that, the system will need to verify the username, password, and reCAPTCHA are not blank.

I am using Vue-Recaptcha for the reCAPTCHA.

data() {
    return {
        email: '',
        password: '',
        recaptcha: ''

Whenever I sent the request, the value can be null or string.

Please sign in or create an account to participate in this conversation.