Re: Sinatra Authentication
Raj Sahae <[email protected]>
| Newsgroups | gmane.comp.lang.ruby.general |
|---|---|
| Message-ID | <CAJHnM_65zmbBCKdS3cLoAFbuKQ_fvM0vZnnk_=95cpUUzHRTcw@mail.gmail.com> |
http://lmgtfy.com/?q=Authentication+sinatra - Raj On Sat, Oct 20, 2018, 2:14 AM Surya Poojary <[email protected]> wrote: > 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> > Unsubscribe: <mailto:[email protected]?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>