Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby

Mitch Malone
Mitch Malone
3,577 Points

Security Warning when testing profile names

I'm doing unit testing for the profile name formatting section when I get this error: SECURITY WARNING: No secret option provided to Rack::Session::Cookie. This poses a security threat. It is strongly recommended that you provide a secret to prevent exploits that may be possible from crafted cookies. This will not be supported in future versions of Rack, and future versions will even invalidate your existing user cookies.

I get the error when I use the regx from the video and in the "relevant code" section below. I have no idea what to do.

1 Answer

Mitch Malone
Mitch Malone
3,577 Points

I fixed it. The regex in the "relevant code" is wrong. There's two uppercase "Z"s which was messing it up.