Go with the simplest solution - have a 'login' action that checks
against the hard-coded info, then sets a cookie. Check for that in
your protected actions (something like the code in protected! you
posted), and clear the cookie on logout.

(No idea what cookie handling looks like on Sinatra, but it should be
easy)

--Matt Jones


On Aug 6, 2:02 pm, Tony Tony <[email protected]> wrote:
> Ahh... there go my hopes for a simple and secure login/logout system!
> Many thanks for the useful information before I started ripping my hair
> out!
>
> Any suggestions on another easy to implement login/logout system? I
> don't require user signups. I just want to hardcode maybe 2 or 3
> usernames and passwords that I could enter from a '/login' page. This is
> only for my personal use.
>
> Thanks again!
>
> -Tony
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to