adonisjs / v6-docs

Documentation website for AdonisJS v6
42 stars 69 forks source link

Remove a bug from code sample in verifying_user_credentials.md #55

Closed petervukovic closed 6 months ago

petervukovic commented 6 months ago

The code sample in the "Verifying credentials" section contains a duplicate user constant declaration, causing the code to fail. I updated it so the first constant, where we look for a matching user, is called userFound.

RomainLanz commented 6 months ago

Hey @petervukovic! 👋🏻

This part is in the "delete" section, you should not blindly copy/paste code sample.

Notice the "red" background. image

petervukovic commented 6 months ago

Hi Romain, apologies for wasting your time. I was going through the new docs quickly trying to set up auth to see how it works, and didn't pay attention these are diffs and not working samples. Thanks for the explanation.