diff --git a/modules/api/auth.py b/modules/api/auth.py index 6613bc8..f80218f 100644 --- a/modules/api/auth.py +++ b/modules/api/auth.py @@ -33,7 +33,7 @@ class auth: self.cursor.execute("BEGIN;") try: loggorilla.prcss(APIADDR, "Get dependency data") - self.cursor.execute(f"SELECT id, name FROM `auth_roles` WHERE auth_roles.name = %s ; ", (roles,) ) + self.cursor.execute(f"SELECT `id` FROM `auth_roles` WHERE `name` = %s ;", (roles,) ) result_roles = self.cursor.fetchone() loggorilla.prcss(APIADDR, "Process parameters") hashed = bcrypt.hashpw(password.encode(), bcrypt.gensalt()).decode()