// automatically log in
flash(Application.FLASH_MESSAGE_KEY,
Messages.get("playauthenticate.reset_password.message.success.auto_login"));
return PlayAuthenticate.loginAndRedirect(ctx(),
new MyLoginUsernamePasswordAuthUser(u.email));
} else {
// send the user to the login page
flash(Application.FLASH_MESSAGE_KEY,
Messages.get("playauthenticate.reset_password.message.success.manual_login"));
}