From 978db68137bf664914a13e4fad0b152cb2f3b76f Mon Sep 17 00:00:00 2001 From: James Valleroy Date: Mon, 4 Nov 2013 02:23:40 +0000 Subject: [PATCH] Remove time.clock line in auth module. It wasn't being used. --- modules/installed/lib/auth.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/modules/installed/lib/auth.py b/modules/installed/lib/auth.py index fec48b80a..4ceff878d 100644 --- a/modules/installed/lib/auth.py +++ b/modules/installed/lib/auth.py @@ -12,7 +12,6 @@ from passlib.hash import bcrypt from passlib.exc import PasswordSizeError import cfg import random -import time from model import User cfg.session_key = '_cp_username' @@ -56,8 +55,6 @@ def check_credentials(username, passphrase): """Verifies credentials for username and passphrase. Returns None on success or a string describing the error on failure""" - start = time.clock() - if not username or not passphrase: error = "No username or password." cfg.log(error)