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

Commit 56d4096

Browse files
committed
fix login with email
1 parent fbee36a commit 56d4096

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main/java/eu/geoknow/generator/users/FrameworkUserManager.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -461,11 +461,11 @@ public void removeAllSessionTokens(String username) throws Exception {
461461
*/
462462
public UserProfile getUserProfile(String userId) throws Exception {
463463
String query =
464-
getPrefixes() + "\n" + "SELECT DISTINCT * FROM <" + frameworkConfig.getAccountsGraph()
465-
+ "> " + "WHERE {" + " {?account foaf:accountName \"" + userId
466-
+ "\" . ?account ?p ?o . } " + " UNION " + " {?account foaf:mbox <mailto:" + userId
467-
+ "> . ?account ?p ?o . } " + " UNION " + " {?account ?p ?o . FILTER (?account = :"
468-
+ userId + ")} " + "}";
464+
getPrefixes() + "\n" + "SELECT DISTINCT * WHERE {GRAPH <"
465+
+ frameworkConfig.getAccountsGraph() + "> {" + " {?account foaf:accountName \""
466+
+ userId + "\" . ?account ?p ?o . } " + " UNION " + " {?account foaf:mbox <mailto:"
467+
+ userId + "> . ?account ?p ?o . } " + " UNION "
468+
+ " {?account ?p ?o . FILTER (?account = <" + userId + ">)} " + "}}";
469469
log.debug(query);
470470

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

0 commit comments

Comments
 (0)