nest.js验证可选参数
If you’re going to put an internet-connected thermostat in your house, you should do whatever you can to keep it secure. Here’s how to enable two-factor authentication on your Nest account to help thwart attackers.
如果您要在家里放置一个连接互联网的恒温器,则应尽一切可能确保其安全。 以下是在您的Nest帐户上启用两因素身份验证以阻止攻击者的方法。
As we’ve explained before, two-factor authentication involves using something you know—like a password—and something you have—like your phone—to log into an account. If an attacker wants to get access to your account, they’d need to know your password and have your phone, seriously decreasing the chances your account will get broken into.
正如我们之前所解释的,两步身份验证涉及使用您所知道的东西(例如密码)和您所拥有的东西(例如手机)登录帐户。 如果攻击者想要访问您的帐户,则需要知道您的密码并拥有您的电话,从而严重降低了您的帐户被盗的机会。
Nest has made two-factor authentication available using codes sent over SMS. While this isn’t the most secure two-factor method, it is one more hurdle for an attacker to get past. Those hurdles are extra important when an intruder in your account could change your home’s temperature or monitor your security cameras.
Nest已使用通过SMS发送的代码提供了双重身份验证。 尽管这不是最安全的两因素方法,但攻击者要越过这又是一个障碍。 当您的帐户中的入侵者可能改变您的房屋温度或监视您的安全摄像机时,这些障碍就显得尤为重要。
To turn on two-factor authentication for your account, head to Nest’s website here and click Sign In in the top-right corner.
要为您的帐户启用双重身份验证,请转到Nest的网站,然后单击右上角的登录。
Next, click your profile picture in the top right corner.
接下来,点击右上角的个人资料照片。
In the drop-down menu, click “Manage account.”
在下拉菜单中,单击“管理帐户”。
In the Account window that appears, click “Manage account” again.
在出现的“帐户”窗口中,再次单击“管理帐户”。
Click Account Security.
单击帐户安全性。
Click “2-step verification” in the next window.
点击下一个窗口中的“两步验证”。
Enable the toggle that appears under “2-step verification” in the Account Security window.
启用“帐户安全性”窗口中“两步验证”下方显示的切换。
You’ll have to re-enter your password to continue. Enter it into the password box, then click Continue.
您必须重新输入密码才能继续。 将其输入密码框中,然后单击继续。
Enter the phone number where you want to receive your authentication codes and click Send Code.
输入您想接收验证码的电话号码,然后单击发送代码。
You’ll receive a text message with a six-digit code shortly. Enter that code below your phone number and click Continue.
您很快就会收到一条包含六位数代码的短信。 在您的电话号码下方输入该代码,然后单击继续。
The last screen will confirm the phone number you used to secure your account. Click Done.
最后一个屏幕将确认您用来保护帐户的电话号码。 单击完成。
Now you’re all set! If you want to log into your account online or on any Nest device, you’ll need to have your phone handy to receive those login codes. So will any attacker who wants to screw around with your thermostat.
现在一切就绪! 如果您想在线或在任何Nest设备上登录帐户,则需要准备好手机以接收这些登录代码。 任何想要拧紧您的恒温器的攻击者也将如此。
翻译自: https://www.howtogeek.com/297885/how-to-enable-two-factor-authentication-on-your-nest-account/
nest.js验证可选参数