Handle malformed encrypted requests without panics
Signed-off-by: Sean Du <do4suki@gmail.com>
This commit is contained in:
@@ -25,7 +25,10 @@ func authKey(ctx *gin.Context) {
|
||||
if ss.CheckErr(err) {
|
||||
return
|
||||
}
|
||||
dummyTokenDecrypted := encrypt.RSADecrypt(dummyToken)
|
||||
dummyTokenDecrypted, err := encrypt.RSADecrypt(dummyToken)
|
||||
if ss.CheckErr(err) {
|
||||
return
|
||||
}
|
||||
|
||||
// aesKey := dummyTokenDecrypted[0:16]
|
||||
// authData, err := base64.StdEncoding.DecodeString(reqData.Get("auth_data").String())
|
||||
|
||||
Reference in New Issue
Block a user