Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 363 Bytes

README.markdown

File metadata and controls

12 lines (8 loc) · 363 Bytes

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