Skip to content

Latest commit

 

History

19 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sinatra Authentication Framework

Basics

Clone it. Add to it. Make it better. Add some routes. Use the helpers.

Helpers

	current_user				#=> Returns current logged in user
	login_required				#=> Checks if a user is logged in
	admin_required				#=> Checks if user is an admin
	is_owner? :id				#=> Checks if logged in user has same id as requested

About

Sample framework for basic authentication in Sinatra with DataMapper

Resources

Stars

24 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages