mirror of
https://github.com/datahub-project/datahub.git
synced 2025-09-05 07:12:27 +00:00
add the internal flag to switch linkedin internal features
This commit is contained in:
parent
291693eb21
commit
ecfd27da9e
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user