go开发邮箱发验证码使用github.com/jordan-wright/email包Test报错EOF

摘要: 代码如下: 1 e := email.NewEmail() 2 e.From = "Get <tanyuyan19@163.com>" 3 e.To = []string{"1505985616@qq.com"} 4 e.Subject = "验证码发送测试" 5 e.HTML = []byte(" 阅读全文
posted @ 2023-06-08 13:25 PurpleGinsburg 阅读(285) 评论(0) 推荐(0)

开发密码登陆接口用postman测试报错“key is of invalid type”

摘要: 发现为go中jwt使用错误 我出错的地方为 // 出现错误地方为 tokenClaims := jwt.NewWithClaims(jwt.SigningMethodES256, claims) return tokenClaims.SignedString(jwtSecret) 我出错的点:加密方 阅读全文
posted @ 2023-06-08 11:14 PurpleGinsburg 阅读(55) 评论(0) 推荐(0)