Remove debug code

This commit is contained in:
Elara 2020-11-12 13:36:44 -08:00
parent 43bdf9a746
commit c5d4d82c42
1 changed files with 0 additions and 2 deletions

View File

@ -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: "/")