Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip time-out flash #292

Closed
wants to merge 1 commit into from
Closed

Skip time-out flash #292

wants to merge 1 commit into from

Conversation

wesleylancel
Copy link
Member

@vanstee This should fix the extra flash message containing true after your session has expired. I'm unable to test as I have no expired sessions. Any chance you know a quick solution to test it anyway?

@vanstee
Copy link
Member

vanstee commented Jul 30, 2014

Closing for now. Let me know if we should still merge this.

@vanstee vanstee closed this Jul 30, 2014
@wesleylancel
Copy link
Member Author

@vanstee It sucks that this is so hard to reproduce. Somehow the timeout setting in the devise config doesn't seem to do a lot, so I can't test. Do you have any suggestions how to easily test this?

I'm fairly sure your fix isn't going to work as this is a separate flash message being used by Devise internally that shouldn't be displayed.

@wesleylancel wesleylancel reopened this Jul 30, 2014
@vanstee
Copy link
Member

vanstee commented Jul 30, 2014

@wesleylancel Oh yeah that's how you disable devise flash messages, by making them an empty string. Seems kinda weird.

@wesleylancel
Copy link
Member Author

@vanstee Yeah, but the "true" flash message isn't actually a flash message meant for display. It's Devise using the flash variable to pass data between pages.

@vanstee
Copy link
Member

vanstee commented Jul 30, 2014

@wesleylancel Oh gotcha. Let me take a look. I can probably force a session to expire and try to repro it.

@vanstee
Copy link
Member

vanstee commented Jul 30, 2014

Actually I'll just try what they recommend here: heartcombo/devise#2787

@wesleylancel
Copy link
Member Author

@vanstee You mean replacing name == "timedout" with checking wether or not the value is actually a string?

@vanstee
Copy link
Member

vanstee commented Aug 1, 2014

@wesleylancel I think this should work 28d6495

Let me know if I should reopen this.

@vanstee vanstee closed this Aug 1, 2014
@wesleylancel wesleylancel deleted the timedout-flash branch August 8, 2014 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants