From 9dc2865a7408c33f403056f408690c227bdfe690 Mon Sep 17 00:00:00 2001
From: ulrich
Date: Tue, 08 Jun 2021 15:00:45 +0000
Subject: [PATCH] Aufgeraeumt

---
 src/de/uhilger/httpserver/oauth/BearerLoginHandler.java |   15 ---------------
 1 files changed, 0 insertions(+), 15 deletions(-)

diff --git a/src/de/uhilger/httpserver/oauth/BearerLoginHandler.java b/src/de/uhilger/httpserver/oauth/BearerLoginHandler.java
index a563ece..3fda7b8 100644
--- a/src/de/uhilger/httpserver/oauth/BearerLoginHandler.java
+++ b/src/de/uhilger/httpserver/oauth/BearerLoginHandler.java
@@ -26,7 +26,6 @@
 import de.uhilger.httpserver.base.handler.HttpHelper;
 import de.uhilger.httpserver.base.handler.HttpResponder;
 import java.io.IOException;
-import java.util.logging.Level;
 import java.util.logging.Logger;
 
 /**
@@ -87,18 +86,6 @@
       User user = getUser(exchange);
       LoginResponse response = auth.login(user.getName(), user.getPassword());
       handleLoginResponse(exchange, response);
-      /*
-      if(response != null) {
-        // hier erfolg melden
-        // 200 OK
-        setLoginHeader(exchange);
-        HttpResponder r = new HttpResponder();
-        r.antwortSenden(exchange, 200, response.toJson());
-      } else {
-        HttpResponder r = new HttpResponder();
-        r.antwortSenden(exchange, 406, "Login failed.");
-      }
-      */
     } else {
       HttpResponder r = new HttpResponder();
       r.antwortSenden(exchange, 500, "No suitable authenticator.");
@@ -107,8 +94,6 @@
   
   protected void handleLoginResponse(HttpExchange exchange, LoginResponse response) throws IOException {
     if(response != null) {
-      // hier erfolg melden
-      // 200 OK
       setLoginHeader(exchange);
       HttpResponder r = new HttpResponder();
       r.antwortSenden(exchange, 200, response.toJson());

--
Gitblit v1.9.3