#Directus

  Рет қаралды 3,079

Watch and Learn

Watch and Learn

Күн бұрын

Viewer called Locness noticed a potential security flaw on our sign up form. In this episode we are going to fix that.
Namely if somebody gets a hold of the Admin Role ID he or she can easily then signup as an administrator to our app, and the do as they please in the admin area.
In this quick episode we are going to fix that.
You can support my work on Patreon
/ watchlearn
Follow me on Social Media
Github: github.com/iva...
Twitter: / ivan_doric

Пікірлер: 21
@dragon3602010
@dragon3602010 2 жыл бұрын
Aaaawesome thanks 🔥
@WatchandLearnTutorials
@WatchandLearnTutorials 2 жыл бұрын
Thanks for watching 😀
@mattd5419
@mattd5419 2 жыл бұрын
I think it could be improved by using the "Field presets" in the role permissions to set the default role, so you don't have to hardcode the id on the frontend
@WatchandLearnTutorials
@WatchandLearnTutorials 2 жыл бұрын
Not sure I follow. I think role is mandatory when sending auth request. Or maybe I'm wrong?
@mattd5419
@mattd5419 2 жыл бұрын
@@WatchandLearnTutorials no, the role is not mandatory.
@armen.danielyan
@armen.danielyan 2 жыл бұрын
You will also need to uncheck the role field in fields permissions so that public users cannot assign a role to themselves when creating a user account.
@WatchandLearnTutorials
@WatchandLearnTutorials 2 жыл бұрын
@@armen.danielyan Good catch! Thnx.
@noahperez9631
@noahperez9631 9 ай бұрын
Amazing tutorial, are you planning to do tutorial about Directus 10.10, maybe multilanguage blog or a digital agency website?
@dragon3602010
@dragon3602010 2 жыл бұрын
Soo cool thanks 👍🏻👍🏻 Do you have a video about making a new layout in the CMS from fields of a content type
@WatchandLearnTutorials
@WatchandLearnTutorials 2 жыл бұрын
Nope. Does that option exist even? If it does please send a link.
@altered.thought
@altered.thought Жыл бұрын
Greetings, We have just build an app following this tutorial, where do we deploy the app, where we can also have access to directus admin panel? [ is it just a simple vercel deploy, ] or is directus going to be deployed somewhere else?
@WatchandLearnTutorials
@WatchandLearnTutorials Жыл бұрын
I don't think you can deploy Directus to Vercel, you can deploy your frontend there but not Directus since it requires a database. I think the easiest way is to use Digital Ocean since they have One click install of Directus. But you can also deploy it to any other cloud provider where you can set up a database.
@ilkercalim
@ilkercalim 2 жыл бұрын
Hi Ivan. Thank you for your great series. I learnt a lot from you. Will be there any tutorial how to deploy directus app to cloud platform like Heroku?
@WatchandLearnTutorials
@WatchandLearnTutorials 2 жыл бұрын
Yeah, I will probably make a video about deployment. However it will be to Digital Ocean.
@mediacreatif
@mediacreatif 2 жыл бұрын
Hello Ivan. I would like to complete your tutorial with performing CRUD operations. What should I setup ? Thanks !
@WatchandLearnTutorials
@WatchandLearnTutorials 2 жыл бұрын
Not sure what you mean. Can you elaborate a bit? What are you trying to achieve?
@mediacreatif
@mediacreatif 2 жыл бұрын
@@WatchandLearnTutorials I mean mutations : edit, create and delete database. As I could check, I have to setup Apollo client right ?
@mediacreatif
@mediacreatif 2 жыл бұрын
I saw that you used mutation to create Directus system's users. What would be the graphql API endpoint to create a blog post by example ? do we have to use /system like you did or something else ? thank you.
@WatchandLearnTutorials
@WatchandLearnTutorials 2 жыл бұрын
@@mediacreatif Well, no. System is only for users and other system stuff that is already integrated in Directus. Endpoint for graphql is /graphql like all the other examples in the series. Your mutation would be called something like create__item(data: create__input): . docs.directus.io/reference/items/#create-an-item
@mediacreatif
@mediacreatif 2 жыл бұрын
@@WatchandLearnTutorials thank you. Finally I used useQuery from Apollo Client with Prisma, it's great! 👍
Next.js App Router: Routing, Data Fetching, Caching
14:32
Vercel
Рет қаралды 345 М.
Transformers (how LLMs work) explained visually | DL5
27:14
3Blue1Brown
Рет қаралды 4,7 МЛН
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 41 МЛН
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
I Spent 100 Hours Inside The Pyramids!
21:43
MrBeast
Рет қаралды 43 МЛН
Using Forms in Next.js (Server Actions, Revalidating Data)
10:27
Hackers Bypass Google Two-Factor Authentication (2FA) SMS
12:47
John Hammond
Рет қаралды 1,1 МЛН
Run your own AI (but private)
22:13
NetworkChuck
Рет қаралды 1,9 МЛН
Blockchain 101 - A Visual Demo
17:50
Anders Brownworth
Рет қаралды 2,8 МЛН
Quickly Authenticate Users with FastAPI and Token Authentication
46:05
Akamai Developer
Рет қаралды 132 М.
How the Best Hackers Learn Their Craft
42:46
RSA Conference
Рет қаралды 2,6 МЛН
10 common mistakes with the Next.js App Router
20:37
Vercel
Рет қаралды 243 М.
How is this Website so fast!?
13:39
Wes Bos
Рет қаралды 1,4 МЛН
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 41 МЛН