Guest User

Untitled

a guest
Sep 16th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.18 KB | None | 0 0
  1. def withAuth(f: => String => Request[AnyContent] => Result) = {
  2.     Security.Authenticated(username, onUnauthorized) { user =>
  3.       Action(request => f(user)(request))
  4.     }
  5.   }
Add Comment
Please, Sign In to add comment