maxjustus / sinatra-authentication

A sinatra extension wrapped in a gem that implements authentication/permissions with users stored in the database. Now with optional support for facebook connect
The Unlicense
478 stars 94 forks source link

Added session[:return_to] to logout route. #34

Closed jmervine closed 12 years ago

jmervine commented 12 years ago

After thought, for an almost unnoticeable performance improvement it probably should be:

redirect ( session[:return_to] ? session[:return_to] : '/' )

cmhobbs commented 12 years ago

:cake: here. @maxjustus objections?

maxjustus commented 12 years ago

:cake: