mod auth
This commit is contained in:
parent
e4c1823799
commit
85b46c6ba6
|
|
@ -209,8 +209,14 @@ class AuthsTable:
|
||||||
"name": name
|
"name": name
|
||||||
})
|
})
|
||||||
db.commit()
|
db.commit()
|
||||||
return True if result == 1 else False
|
if result == 1:
|
||||||
except Exception:
|
print(f"User profile updated successfully: id={id}, name={name}")
|
||||||
|
return True
|
||||||
|
else:
|
||||||
|
print(f"Failed to update user profile: id={id}, name={name}")
|
||||||
|
return False
|
||||||
|
except Exception as e:
|
||||||
|
print(f"Error updating user profile: {e}")
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue