Human approval is unstable. Someone may praise you today and criticize you tomorrow, so it's wiser to anchor your life in deeper principles than in other people's opinions.
I had hacked CBSE's OSM (On-Screen Marking Portal) in February and had reported the vulnerabilities to CERT-In, but they were unable to patch most of them.
I've written a detailed blog post about it here: https://t.co/qyT23GkTEJ
The greatest trait you can acquire is to work with tremendous intensity on things that matter to you, and more importantly, be strangely unbothered when those things don't work out.