title: Allauth - How to disable reset password for social accounts?
body: <p>I want social users are only able to login without password. Therefore, I want to disable password reset at /accounts/password/reset/ for social users.</p>
  
  <p>I know that I need to add a conditional in this code at allauth.accounts.forms.py</p>
  
  <pre class="lang-py prettyprint-override"><code>class ResetPasswordForm(forms.Form):
  
      email = forms.EmailField(
          label=_("E-mail"),
          required=True,
          widget=forms.TextInput(attrs={"type": "email", "size": "30"}))
  
      def clean_email(self):
          email = self.cleaned_data["email"]
          email = get_adapter().clean_email(email)
          self.users = filter_users_by_email(email)
          if not self.users.exists():
              raise forms.ValidationError(_("The e-mail address is not assigned"
                                            " to any user account"))
          return self.cleaned_data["email"]
  </code></pre>
  
  <p>I'm thinking about this solution, but I don't know how to do it properly:
  </p>
  
  <pre><code>  elif SocialAccount.objects.filter(provider='facebook'):
        raise forms.ValidationError(_("You are using a social account.")
  </code></pre>