Skip to content

Instantly share code, notes, and snippets.

@jonathanselander
Created July 12, 2012 10:47
Show Gist options
  • Save jonathanselander/3097360 to your computer and use it in GitHub Desktop.
Save jonathanselander/3097360 to your computer and use it in GitHub Desktop.
package controllers;
import play.*;
import play.mvc.*;
import play.data.*;
import views.html.login.*;
import models.*;
public class Authentication extends Controller {
final static Form<User> loginForm = form(User.class);
public static Result index() {
return ok(index.render(loginForm));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment