You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When doing some tests I reset an account and got this message.
An email has been sent to you with further instructions on how to reset your password.
Then I move to the Login page and that message above still appears.
How to set this flash message stuff to only show one time?
I use this to get flash messages:
func Home(w http.ResponseWriter, r *http.Request) {
// ResponseWriter must be a ClientStateResponseWriter
// ab is *authboss.Authboss
csrw := ab.NewResponse(w)
data := authboss.HTMLData{
"flash_error": authboss.FlashError(csrw, r),
"flash_success": authboss.FlashSuccess(csrw, r),
}
}
When I inspect the FlashSuccess function I see that the flash message flushed directly with DelSession:
Thank you for this great lib!
When doing some tests I reset an account and got this message.
Then I move to the Login page and that message above still appears.
How to set this flash message stuff to only show one time?
I use this to get flash messages:
When I inspect the
FlashSuccess
function I see that the flash message flushed directly withDelSession
:authboss/client_state.go
Lines 373 to 381 in e62387f
@aarondl Could you help me with this flash message issue? Thank you.
edit:
After more debugging, I find out that my
w
is of typehttptest.ResponseRecorder
.The text was updated successfully, but these errors were encountered: