passwall / passwall-server

Passwall Server is the core backend infrastructure for Passwall platform
https://passwall.io
GNU Affero General Public License v3.0
751 stars 105 forks source link

Add return error if decryption fails #191

Closed ahmetcancicek closed 2 years ago

ahmetcancicek commented 2 years ago

I have done a TODO for return error if decryption fails. So I refactored some functions.

yakuter commented 2 years ago

Thank you @ahmetcancicek

ahmetcancicek commented 2 years ago

Thank you @yakuter. I think that it is not good two hundred fifth and two hundred-eighth lines of codes for return err variable in internal/app/encryption.go. We can refactor these lines.