return securesocial.views.html.notAuthorized.render(ctx._requestHeader(), ctx.lang(), SecureSocial.env());
}
public F.Promise<Result> notAuthenticatedResult(Http.Context ctx) {
Http.Request req = ctx.request();
Result result;
if ( req.accepts("text/html")) {
ctx.flash().put("error", play.i18n.Messages.get("securesocial.loginRequired"));
ctx.session().put(SecureSocial.ORIGINAL_URL, ctx.request().uri());
result = redirect(SecureSocial.env().routes().loginPageUrl(ctx._requestHeader()));