mirror of https://github.com/bjdgyc/anylink.git
恢复代码
This commit is contained in:
parent
a0569b09f2
commit
cb9d023a96
|
@ -117,13 +117,13 @@ func checkLocalUser(name, pwd, group string) error {
|
||||||
}
|
}
|
||||||
// 判断otp信息
|
// 判断otp信息
|
||||||
pinCode := pwd
|
pinCode := pwd
|
||||||
// if !v.DisableOtp {
|
if !v.DisableOtp {
|
||||||
// pinCode = pwd[:pl-6]
|
pinCode = pwd[:pl-6]
|
||||||
// otp := pwd[pl-6:]
|
otp := pwd[pl-6:]
|
||||||
// if !CheckOtp(name, otp, v.OtpSecret) {
|
if !CheckOtp(name, otp, v.OtpSecret) {
|
||||||
// return fmt.Errorf("%s %s", name, "动态码错误")
|
return fmt.Errorf("%s %s", name, "动态码错误")
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
|
|
||||||
// 判断用户密码
|
// 判断用户密码
|
||||||
if pinCode != v.PinCode {
|
if pinCode != v.PinCode {
|
||||||
|
|
Loading…
Reference in New Issue