Remove time.clock line in auth module. It wasn't being used.

This commit is contained in:
James Valleroy 2013-11-04 02:23:40 +00:00 committed by Nick Daly
parent 292bedebe6
commit 96edae33ed

View File

@ -12,7 +12,6 @@ from passlib.hash import bcrypt
from passlib.exc import PasswordSizeError from passlib.exc import PasswordSizeError
import cfg import cfg
import random import random
import time
from model import User from model import User
cfg.session_key = '_cp_username' cfg.session_key = '_cp_username'
@ -56,8 +55,6 @@ def check_credentials(username, passphrase):
"""Verifies credentials for username and passphrase. """Verifies credentials for username and passphrase.
Returns None on success or a string describing the error on failure""" Returns None on success or a string describing the error on failure"""
start = time.clock()
if not username or not passphrase: if not username or not passphrase:
error = "No username or password." error = "No username or password."
cfg.log(error) cfg.log(error)