mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-28 08:03:36 +00:00
Remove time.clock line in auth module. It wasn't being used.
This commit is contained in:
parent
f55ba41551
commit
978db68137
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user