Some checks failed
Build docker and publish / build (20.15.1) (push) Has been cancelled
refactor: 重构用户模型和密码验证逻辑 feat(epay): 添加支付类型支持 docs: 添加安装和配置指南文档 fix: 修复优惠券过期检查逻辑 perf: 优化设备解绑缓存清理流程 test: 添加密码验证测试用例 chore: 更新依赖版本
16 lines
359 B
Go
16 lines
359 B
Go
package tool
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestEncodePassWord(t *testing.T) {
|
|
t.Logf("EncodePassWord: %v", EncodePassWord("password"))
|
|
}
|
|
|
|
func TestMultiPasswordVerify(t *testing.T) {
|
|
pwd := "$2y$10$WFO17pdtohfeBILjEChoGeVxpDG.u9kVCKhjDAeEeNmCjIlj3tDRy"
|
|
status := MultiPasswordVerify("bcrypt", "", "admin1", pwd)
|
|
t.Logf("MultiPasswordVerify: %v", status)
|
|
}
|