Google Authenticator 2-Factor身份验证始终返回无效代码错误

时间:2019-12-04 07:15:02

标签: asp.net-mvc asp.net-identity identity google-authenticator 12factor

我正在使用OTP Sharp的身份在asp.net mvc中实现2fa身份验证,以验证TOTP代码,始终在有效代码中出现错误

这是下面的操作代码

  config.vm.provision "shell", inline: <<-SHELL
     sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g' /etc/ssh/sshd_config    
     systemctl restart sshd.service
  SHELL

当我输入由Google Authenticator移动应用获取的QR码时,它总是返回错误无效的代码。请采取任何解决方案。

0 个答案:

没有答案