解决普通用户无法使用私钥进行远程SSH连接的问题(手误)。

pull/32/head
Apex Liu 2017-05-28 14:56:35 +08:00
parent 4ae6d4c5b5
commit 98172db2f8
1 changed files with 1 additions and 1 deletions

View File

@ -730,7 +730,7 @@ def get_auth_info(auth_id):
elif db_item.c_auth_mode == 2: elif db_item.c_auth_mode == 2:
cert_id = db_item.c_cert_id cert_id = db_item.c_cert_id
sql = 'SELECT `cert_pri` FROM `{}key` WHERE `cert_id`={}'.format(int(cert_id)) sql = 'SELECT `cert_pri` FROM `{}key` WHERE `cert_id`={}'.format(db.table_prefix, int(cert_id))
db_ret = db.query(sql) db_ret = db.query(sql)
if db_ret is None or len(db_ret) > 1: if db_ret is None or len(db_ret) > 1:
return None return None