验证码更换为数字字母组合验证码
This commit is contained in:
parent
b573e9194e
commit
a9be8934c6
@ -137,7 +137,7 @@ namespace ZR.Admin.WebApi.Controllers.System
|
||||
{
|
||||
string uuid = Guid.NewGuid().ToString().Replace("-", "");
|
||||
var code = SecurityCodeHelper.GetRandomEnDigitalText(4);
|
||||
var imgByte = SecurityCodeHelper.GetGifEnDigitalCodeByte(code);
|
||||
var imgByte = SecurityCodeHelper.GetEnDigitalCodeByte(code);
|
||||
string base64Str = Convert.ToBase64String(imgByte);
|
||||
CacheHelper.SetCache(uuid, code);
|
||||
var obj = new { uuid, img = base64Str };// File(stream, "image/png")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user