Fix Login and Logout that were broken with SSL
This commit is contained in:
		@@ -1,4 +1,10 @@
 | 
			
		||||
2.024004 - 2014-03-04
 | 
			
		||||
2.024005 - 2014-03-04
 | 
			
		||||
 | 
			
		||||
  [BUG FIXES]
 | 
			
		||||
 | 
			
		||||
  * Fix Login and Logout that were broken with SSL
 | 
			
		||||
 | 
			
		||||
2.024003_001 - 2014-03-03
 | 
			
		||||
 | 
			
		||||
  [ENHANCEMENTS]
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -51,7 +51,7 @@ post '/login' => sub {
 | 
			
		||||
        });
 | 
			
		||||
 | 
			
		||||
        return if request->is_ajax;
 | 
			
		||||
        redirect param('return_url');
 | 
			
		||||
        redirect param('return_url')->path;
 | 
			
		||||
    }
 | 
			
		||||
    else {
 | 
			
		||||
        session->destroy;
 | 
			
		||||
@@ -85,7 +85,7 @@ any ['get', 'post'] => '/logout' => sub {
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
    session->destroy;
 | 
			
		||||
    redirect uri_for('/inventory');
 | 
			
		||||
    redirect uri_for('/inventory')->path;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
true;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user