Sinatra Authentication
Surya Poojary <[email protected]>
| Newsgroups | gmane.comp.lang.ruby.general |
|---|---|
| Message-ID | <CAANzoREuZN1SrOw2O_zRuPhaQsO-do9suetOsk_UNxhehskmNQ@mail.gmail.com> |
Hello rubyists! I'm trying to learn Sinatra and want to implement an authentication system like If username == "me" and password == "she" // go to the next page Else // Take to some page that says "you are not authorised" How do I do this ? Gracias, Rubyists. Unsubscribe: <mailto:[email protected]?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>