Skip to content
This repository has been archived by the owner on Apr 22, 2022. It is now read-only.

Commit

Permalink
fix login with email
Browse files Browse the repository at this point in the history
  • Loading branch information
alegrm committed Nov 27, 2015
1 parent fbee36a commit 56d4096
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -461,11 +461,11 @@ public void removeAllSessionTokens(String username) throws Exception {
*/
public UserProfile getUserProfile(String userId) throws Exception {
String query =
getPrefixes() + "\n" + "SELECT DISTINCT * FROM <" + frameworkConfig.getAccountsGraph()
+ "> " + "WHERE {" + " {?account foaf:accountName \"" + userId
+ "\" . ?account ?p ?o . } " + " UNION " + " {?account foaf:mbox <mailto:" + userId
+ "> . ?account ?p ?o . } " + " UNION " + " {?account ?p ?o . FILTER (?account = :"
+ userId + ")} " + "}";
getPrefixes() + "\n" + "SELECT DISTINCT * WHERE {GRAPH <"
+ frameworkConfig.getAccountsGraph() + "> {" + " {?account foaf:accountName \""
+ userId + "\" . ?account ?p ?o . } " + " UNION " + " {?account foaf:mbox <mailto:"
+ userId + "> . ?account ?p ?o . } " + " UNION "
+ " {?account ?p ?o . FILTER (?account = <" + userId + ">)} " + "}}";
log.debug(query);

String result = rdfStoreManager.execute(query, jsonResponseFormat);
Expand Down

0 comments on commit 56d4096

Please sign in to comment.