Created
September 2, 2014 20:02
-
-
Save mmurray/9dfe80e269972f470558 to your computer and use it in GitHub Desktop.
scala example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import play.api.mvc.RequestHeader | |
def getUserId()(implicit request: RequestHeader) = { | |
request.cookies.get("uid").map(_.value.toLong).filter(_ > 0) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment