Skip to content

Commit

Permalink
code clean
Browse files Browse the repository at this point in the history
  • Loading branch information
LODYGENSKY Oleg committed Jan 19, 2018
1 parent 5094ffb commit c394380
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/xtremweb/dispatcher/HTTPHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -1310,6 +1310,8 @@ private UserInterface userFromOpenId(final HttpServletRequest request) throws IO
HTTPOpenIdHandler.getInstance().verifyNonce(authNonce);
ret = DBInterface.getInstance().user(UserInterface.Columns.EMAIL.toString() + "= '" + authEmail + "'");
if (ret == null) {
ret = newUser(authId, authEmail);
/*
if (Dispatcher.getConfig().getBoolean(XWPropertyDefs.DELEGATEDREGISTRATION) == false) {
throw new IOException("delegated registration is not allowed");
}
Expand All @@ -1332,6 +1334,7 @@ private UserInterface userFromOpenId(final HttpServletRequest request) throws IO
client.setEMail(authEmail);
DBInterface.getInstance().addUser(admin, client);
ret = client;
*/
}
session.setAttribute(XWPostParams.AUTH_NONCE.toString(), authNonce);
session.setAttribute(XWPostParams.AUTH_EMAIL.toString(), authEmail);
Expand Down

0 comments on commit c394380

Please sign in to comment.