Merge branch 'Porchetta-Industries:master' into master

main
zblurx 2022-11-18 18:39:01 +01:00 committed by GitHub
commit 561fb6da57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -271,16 +271,16 @@ class database:
logging.debug('add_group(domain={}, name={}) => {}'.format(domain, name, cur.lastrowid)) logging.debug('add_group(domain={}, name={}) => {}'.format(domain, name, cur.lastrowid))
return cur.lastrowid return cur.lastrowid
'''
def remove_credentials(self, credIDs): def remove_credentials(self, credIDs):
""" """
Removes a credential ID from the database Removes a credential ID from the database
""" """
for credID in credIDs: for credID in credIDs:
cur = self.conn.cursor() cur = self.conn.cursor()
cur.execute("DELETE FROM credentials WHERE id=?", [credID]) cur.execute("DELETE FROM users WHERE id=?", [credID])
cur.close() cur.close()
'''
def add_admin_user(self, credtype, domain, username, password, host, userid=None): def add_admin_user(self, credtype, domain, username, password, host, userid=None):
domain = domain.split('.')[0].upper() domain = domain.split('.')[0].upper()