Conditional Validation for LoginController

Posted 8 months ago by Aiden-IPI

Hello,

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

Scenario

  • 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.