Skip to content

Instantly share code, notes, and snippets.

View codingismy11to7's full-sized avatar

Steven Scott codingismy11to7

View GitHub Profile
@codingismy11to7
codingismy11to7 / Application.scala
Last active August 29, 2015 14:22
play auth pseudocode
class Application extends Controller {
case class LoginData(user: String, pass: String)
private val loginFormConstraints = Form(mapping("user" -> nonEmptyText, "pass" -> nonEmptyText))(LoginData.apply)(LoginData.unapply)
def showLogin = Action {
OK(views.html.login)
}
private def authenticate(user: String, pass: String): Future[AuthResponse] = ???