Learn how to make the AdonisJS login attempt query case-insensitive easily by adding a simple method to our User Model.
👍 If You Enjoy This Video, Consider Hitting The Like Button!
🥁 Subscribe To Stay Notified For New Videos: https://www.youtube.com/adocasts?sub_...
📕 Read & View on Adocasts: https://adocasts.com/lessons/how-to-m...
🧾 Find The Code For This Lesson Here: https://github.com/adocasts/adonisjs-...
In this lesson, we’ll learn how to make our AdonisJS authentication login attempt method’s query case-insensitive so that our users can log in using their username or email with any character casing. This comes in handy on mobile and tablet devices that like to start fields with a capitalized character.
🎬 Check Out More Videos Here:
AdonisJS Auth in 15 Minutes: • AdonisJS Authentication in 15 Minutes
AdonisJS Quick Tips: • AdonisJS Quick Tip
Let's Learn AdonisJS 5: • Let's Learn Adonis 5
🕑 Chapters
00:00 - Intro
00:15 - Login Default Behavior
00:38 - Demonstrating the Problem
01:30 - Prerequisites
02:03 - Explaining the findForAuth flow
02:44 - Making Login Case-Insensitive
04:20 - Fixing TypeScript Errors
05:30 - Outro
-------------------------Socials--------------------------
🕸️Website: https://adocasts.com
🐦Twitter: / adocasts
👍 GitHub: https://github.com/adocasts