diff options
author | Artem Tarasov | 2015-06-18 21:13:13 +0300 |
---|---|---|
committer | Artem Tarasov | 2015-06-18 21:13:13 +0300 |
commit | 526fe5381a2d26dd5269553e2fa648e6827030ad (patch) | |
tree | 1ebb34699eafd8400b60a927f6dc116e13194c91 /wqflask/utility | |
parent | 133d5a051d4e36120b1578e0e490ae3dc40f3954 (diff) | |
download | genenetwork2-526fe5381a2d26dd5269553e2fa648e6827030ad.tar.gz |
removed unused function
Diffstat (limited to 'wqflask/utility')
-rwxr-xr-x | wqflask/utility/webqtlUtil.py | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/wqflask/utility/webqtlUtil.py b/wqflask/utility/webqtlUtil.py index 4d7981d9..4b3d0112 100755 --- a/wqflask/utility/webqtlUtil.py +++ b/wqflask/utility/webqtlUtil.py @@ -880,22 +880,6 @@ def cmpGenoPos(A,B): except: return 0 -#XZhou: Must use "BINARY" to enable case sensitive comparison. -def authUser(name,password,db, encrypt=None): - try: - if encrypt: - query = 'SELECT privilege, id,name,password, grpName FROM User WHERE name= BINARY \'%s\' and password= BINARY \'%s\'' % (name,password) - else: - query = 'SELECT privilege, id,name,password, grpName FROM User WHERE name= BINARY \'%s\' and password= BINARY SHA(\'%s\')' % (name,password) - db.execute(query) - records = db.fetchone() - if not records: - raise ValueError - return records#(privilege,id,name,password,grpName) - except: - return (None, None, None, None, None) - - def hasAccessToConfidentialPhenotypeTrait(privilege, userName, authorized_users): access_to_confidential_phenotype_trait = 0 if webqtlConfig.USERDICT[privilege] > webqtlConfig.USERDICT['user']: |