Memocast icon indicating copy to clipboard operation
Memocast copied to clipboard

建议不要在日志中不要打印明文密码

Open bysunexus opened this issue 4 years ago • 3 comments

当登录出错(网络错误)的时候,在日志中打印了明文密码

bysunexus avatar Jan 14 '22 03:01 bysunexus

应该是请求失败的时候打印请求日志吧? 但是如果不打印的话有些错误比较难以排查?请教一下有什么好的办法吗?

TankNee avatar Jan 14 '22 03:01 TankNee

但是如果不打印的话有些错误比较难以排查?请教一下有什么好的办法吗?

打印 “账号或密码错误”

altairwei avatar Jan 14 '22 03:01 altairwei

应该是axios请求失败的时候报错,总不能在catch里加个判断吧😂,感觉怪怪的。


该邮件从移动设备发送

--------------原始邮件-------------- 发件人:"Altair Wei @.>; 发送时间:2022年1月14日(星期五) 中午11:35 收件人:"TankNee/Memocast" @.>; 抄送:"TankNee @.>;"Comment @.>; 主题:Re: [TankNee/Memocast] 建议不要在日志中不要打印明文密码 (Issue #182)

但是如果不打印的话有些错误比较难以排查?请教一下有什么好的办法吗?

打印 “账号或密码错误”

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you commented.Message ID: @.***>

TankNee avatar Jan 14 '22 03:01 TankNee