mirror of https://github.com/jumpserver/jumpserver
perf: 修改 db
parent
7b380219dc
commit
132848c054
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:37be0604185cf3189de457dc7339a461052d96582096beb4fdf7b0fcb2c290a8
|
oid sha256:36a6ac3b65401dbf67cb31ec090e4bad900fc162d092359d9b0a61c177156bad
|
||||||
size 98037760
|
size 16384
|
||||||
|
|
|
@ -156,7 +156,7 @@ class CheckLeakHandler(BaseCheckHandler):
|
||||||
if not account.secret:
|
if not account.secret:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
sql = 'SELECT 1 FROM leak_passwords WHERE password = ? LIMIT 1'
|
sql = 'SELECT 1 FROM passwords WHERE password = ? LIMIT 1'
|
||||||
self.cursor.execute(sql, (account.secret,))
|
self.cursor.execute(sql, (account.secret,))
|
||||||
leak = self.cursor.fetchone() is not None
|
leak = self.cursor.fetchone() is not None
|
||||||
return leak
|
return leak
|
||||||
|
|
Loading…
Reference in New Issue