mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-04 13:07:55 +00:00 
			
		
		
		
	fix: Fix broken SSO login after vuelidate changes (#9877)
This commit is contained in:
		@@ -40,7 +40,7 @@
 | 
			
		||||
    >
 | 
			
		||||
      <div v-if="!email">
 | 
			
		||||
        <GoogleOAuthButton v-if="showGoogleOAuth" />
 | 
			
		||||
        <form class="space-y-5" @submit.prevent="submitLogin">
 | 
			
		||||
        <form class="space-y-5" @submit.prevent="submitFormLogin">
 | 
			
		||||
          <form-input
 | 
			
		||||
            v-model.trim="credentials.email"
 | 
			
		||||
            name="email_address"
 | 
			
		||||
@@ -198,11 +198,6 @@ export default {
 | 
			
		||||
      useAlert(this.loginApi.message);
 | 
			
		||||
    },
 | 
			
		||||
    submitLogin() {
 | 
			
		||||
      if (this.v$.credentials.email.$invalid && !this.email) {
 | 
			
		||||
        this.showAlertMessage(this.$t('LOGIN.EMAIL.ERROR'));
 | 
			
		||||
        return;
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      this.loginApi.hasErrored = false;
 | 
			
		||||
      this.loginApi.showLoading = true;
 | 
			
		||||
 | 
			
		||||
@@ -231,6 +226,14 @@ export default {
 | 
			
		||||
          );
 | 
			
		||||
        });
 | 
			
		||||
    },
 | 
			
		||||
    submitFormLogin() {
 | 
			
		||||
      if (this.v$.credentials.email.$invalid && !this.email) {
 | 
			
		||||
        this.showAlertMessage(this.$t('LOGIN.EMAIL.ERROR'));
 | 
			
		||||
        return;
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      this.submitLogin();
 | 
			
		||||
    },
 | 
			
		||||
  },
 | 
			
		||||
};
 | 
			
		||||
</script>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user