Recent Activity
Here's what @michel-mbili has been up to this past year
-
Completed lesson Getting Started, Installing AlpineJS and TailwindCSS
-
Completed lesson Exploring EdgeJS' Component System
-
Anniversary Thanks for being an Acocasts member for 1 year
-
Completed lesson Separation of API & Web Auth Guard Concerns
-
Completed lesson Configuring Access Token Auth on top of Session Auth
-
Completed lesson Overview of our Database Schema
-
Completed lesson Getting Familiar with our Web Project
-
Started discussion Inertia + React - Change URL but open modal (No full navigation)
-
Completed lesson Goal of this Series
-
Upvoted comment Awesome, glad to hear all is working now!Yep, that'll do it!...
-
Replied to I'm guessing you're probably using v3 or later of the AdonisJS...
Thank you so much!
Yeah I'm using"@adonisjs/inertia": "^3.1.0"It all works now. For the user I didn't useauth middlewareon my route that's why I was not getting theuser -
Replied to I've undefined for user and errors. here is what I've done in...
// When I do this, I get the errors sharedData: { greetings: 'bonjour', user: (ctx) => { const errors = ctx.session.flashMessages.get('errors') console.log({ ctx: errors }) return ctx.auth.user }, },Copied! -
Replied to Hi Michel,Are you sure you have an authenticated user and/or...
I've
undefinedforuseranderrors.
here is what I've done in my signin_controllertry{} catch (error) { if (error instanceof errors.E_INVALID_CREDENTIALS) { session.flash('errors', { form: 'Invalid credentials' }) return response.redirect().back() } // Handle other errors session.flash('errors', { form: 'An error occurred during login' }) return response.redirect().back() }Copied!Maybe it can help understand what's going on
-
Started discussion SharedData Problem - Inertia + React
-
Completed lesson Creating A Layout
-
Completed lesson Partial and Lazy Data Loading and Evaluation
-
Completed lesson Global Components and Hydration Mismatch in Action
-
Completed lesson The Link Component and Programmatic Linking
-
Completed lesson Linking Between Pages & Page State Flow
-
Completed lesson Refreshing Partial Page Data
-
Completed lesson Removing an Organization User
-
Completed lesson Canceling an Organization Invite
-
Completed lesson Adding the Organization Invite User Interface
-
Completed lesson Accepting an Organization Invitation
-
Completed lesson Sending an Invitation to Join Our Organization
-
Completed lesson Listing Current Organization Members
-
Completed lesson Model Query Builder Macros in AdonisJS 6
-
Completed lesson How To Redirect Back to the Previous Page After Login with AdonisJS