mirror of
				https://github.com/gitbucket/gitbucket.git
				synced 2025-10-30 18:15:59 +01:00 
			
		
		
		
	Improve session handling.
This commit is contained in:
		| @@ -63,11 +63,7 @@ abstract class ControllerBase extends ScalatraFilter | ||||
|     request.getRequestURI + (if(queryString != null) "?" + queryString else "") | ||||
|   } | ||||
|  | ||||
|   private def LoginAccount: Option[Account] = | ||||
|     session.get("LOGIN_ACCOUNT") match { | ||||
|       case Some(x: Account) => Some(x) | ||||
|       case _ => None | ||||
|     } | ||||
|   private def LoginAccount: Option[Account] = session.getAs[Account]("LOGIN_ACCOUNT") | ||||
|  | ||||
|   def ajaxGet(path : String)(action : => Any) : Route = | ||||
|     super.get(path){ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user