Remove debug code
This commit is contained in:
		@@ -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: "/")
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user