mirror of
https://github.com/datahub-project/datahub.git
synced 2025-09-03 06:13:14 +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)
|
||||
public static Result idpc()
|
||||
{
|
||||
Boolean isInternal = Play.application().configuration().getBoolean(LINKEDIN_INTERNAL_KEY, false);
|
||||
String username = session("user");
|
||||
if (username == null)
|
||||
{
|
||||
username = "";
|
||||
}
|
||||
return ok(idpc.render(username));
|
||||
return ok(idpc.render(username, isInternal));
|
||||
}
|
||||
|
||||
public static Result login()
|
||||
|
Loading…
x
Reference in New Issue
Block a user