From e241faf766820541f996f0d55195ab5e9de7b390 Mon Sep 17 00:00:00 2001 From: sose Date: Thu, 24 Dec 2020 15:24:57 +0000 Subject: [PATCH] more appropriate error codes --- motm.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/motm.py b/motm.py index 8ea03af..519f572 100644 --- a/motm.py +++ b/motm.py @@ -78,15 +78,15 @@ class MessageBoard: client_hash = self.env["TLS_CLIENT_HASH"] if post is not None and post.cert_hash != client_hash: - print("60", "You are not authorized to modify this post.") + print("61", "You are not authorized to modify this post.") return False client_cert = self.db.hash_to_cert(client_hash) if client_cert is None: - print("60", "Cert hash not in db.") + print("61", "Cert hash not in db.") return False if self.ca.verify_cert(client_cert) != True: - print("60", "You are banned.") + print("61", "You are banned.") return False return True