add the internal flag to switch linkedin internal features

This commit is contained in:
jbai 2016-02-10 19:58:55 -08:00 committed by Mars Lan
parent 291693eb21
commit ecfd27da9e

View File

@ -131,12 +131,13 @@ public class Application extends Controller
@Security.Authenticated(Secured.class) @Security.Authenticated(Secured.class)
public static Result idpc() public static Result idpc()
{ {
Boolean isInternal = Play.application().configuration().getBoolean(LINKEDIN_INTERNAL_KEY, false);
String username = session("user"); String username = session("user");
if (username == null) if (username == null)
{ {
username = ""; username = "";
} }
return ok(idpc.render(username)); return ok(idpc.render(username, isInternal));
} }
public static Result login() public static Result login()