From c39438003ccca89b022012d77a2f08eb87085cc3 Mon Sep 17 00:00:00 2001 From: LODYGENSKY Oleg Date: Fri, 19 Jan 2018 13:26:38 +0100 Subject: [PATCH] code clean --- src/main/java/xtremweb/dispatcher/HTTPHandler.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/xtremweb/dispatcher/HTTPHandler.java b/src/main/java/xtremweb/dispatcher/HTTPHandler.java index 00245093..17ac5994 100644 --- a/src/main/java/xtremweb/dispatcher/HTTPHandler.java +++ b/src/main/java/xtremweb/dispatcher/HTTPHandler.java @@ -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"); } @@ -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);