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>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.