From c5d4d82c424197bd6837e40c0370bc6507917519 Mon Sep 17 00:00:00 2001 From: Arsen Musayelyan Date: Thu, 12 Nov 2020 13:36:44 -0800 Subject: [PATCH] Remove debug code --- Sources/App/routes.swift | 2 -- 1 file changed, 2 deletions(-) diff --git a/Sources/App/routes.swift b/Sources/App/routes.swift index 7d1f06f..f221ccb 100644 --- a/Sources/App/routes.swift +++ b/Sources/App/routes.swift @@ -35,8 +35,6 @@ func routes(_ app: Application) throws { let loginPassData = data.password?.data(using: .utf8) let loginPassHash = SHA256.hash(data: loginPassData ?? "".data(using: .utf8)!) let stringHash = loginPassHash.map { String(format: "%02hhx", $0) }.joined() - print("Recv: \(stringHash)") - print("Conf: \(config.passwordHash)") if stringHash == config.passwordHash { req.session.data["loggedIn"] = "true" return try req.redirect(to: "/")