daddz / sinatra-dm-login

A sample login/user authentication with Sinatra and Datamapper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sinatra-dm-login - A simple login example with Sinatra and Datamapper

Update

I updated all files to work with the new gem versions and ruby 1.9.2 I'm sorry for doing it that late!

Ideas

If you have anything you want to see in this example, go ahead and let me know!

Requirements

  • sinatra

  • datamapper

  • do_sqlite3

  • rake

  • rack

Usage

Test users

The following dummy users get created:

  • name: test | password: pw

  • name: foo | password: bar

Thanks

I used the model authentication code from a very very old blog post but I don't remember where it was. Thanks to the guy who wrote the blog post. If someone knows the link let me know so I can add it here.

About

A sample login/user authentication with Sinatra and Datamapper


Languages

Language:Ruby 100.0%