title: Custom Authentication Backend in Django
body: <p>How to write a custom authentication backend in Django taking scenario as Phone Number &amp; OTP(One-Time Password) to authenticate against each user.</p>
  
  <p>How to authenticate each user in form of multiple conditions.</p>
  
  <ol>
  <li>If email is verified and password exist ( authenticate using email and password).</li>
  <li>If phone is verified and exist( authenticate using phone and otp or if password exist then auth using phone and password).</li>
  </ol>