Created
September 12, 2015 17:56
-
-
Save jasmo2/44596c822f7ec2882cf4 to your computer and use it in GitHub Desktop.
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
public static Result doLogin() { | |
com.feth.play.module.pa.controllers.Authenticate.noCache(response()); | |
final Form<MyLogin> filledForm = MyUsernamePasswordAuthProvider.LOGIN_FORM | |
.bindFromRequest(); | |
if (filledForm.hasErrors()) { | |
// User did not fill everything properly | |
return badRequest(login.render(filledForm)); | |
} else { | |
// Everything was filled | |
return UsernamePasswordAuthProvider.handleLogin(ctx()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment