<!--
This file is part of Linode Manager Classic.

Linode Manager Classic is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Linode Manager Classic is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with Linode Manager Classic.  If not, see <https://www.gnu.org/licenses/>.
-->
<!DOCTYPE HTML>
<html lang="en">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>LMC - Two-Factor Authentication</title>
		<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
		<link rel="stylesheet" type="text/css" href="twofactor.css" />
		<script src="twofactor.js" type="module"></script>
	</head>
	<body>
		<!--#include virtual="/include/header.html"-->
		<!--#include virtual="/include/profile_subnav.html"-->
		<div id="main-content" class="wrapper">
			<div id="top-links"><a href="/profile">My Profile</a> » <a href="/profile/auth">Password & Authentication</a> » <span class="top-links-title">Enable Two-Factor Authentication</span></div>
			<div id="twofactor">
				<table class="lmc-table">
					<thead>
						<tr>
							<td colspan="3">Enable Two-Factor Authentication</td>
						</tr>
						<tr>
							<td colspan="3">Step 1</td>
						</tr>
					</thead>
					<tbody>
						<tr class="lmc-tr3">
							<td>Dscription</td>
							<td colspan="2">Scan the QR code (or enter the key) into your two-factor application.</td>
						</tr>
						<tr class="lmc-tr3">
							<td>Secret Key</td>
							<td id="tfa-secret"></td>
							<td class="info">Save this key in a safe place, it will only be shown once.</td>
						</tr>
						<tr class="lmc-tr3">
							<td>QR Code</td>
							<td id="qr-code"><img id="qr-code-img" src="//:0" alt="qr-code" /></td>
							<td></td>
						</tr>
					</tbody>
					<tbody class="lmc-tbody-head">
						<tr class="noshow">
							<td colspan="3"></td>
						</tr>
						<tr>
							<td colspan="3">Step 2</td>
						</tr>
					</tbody>
					<tbody>
						<tr class="lmc-tr3">
							<td>Description</td>
							<td colspan="2">Use your two-factor app to generate a token to verify everything is working correctly.</td>
						</tr>
						<tr class="lmc-tr3">
							<td>Generated Token</td>
							<td colspan="2"><input id="tfa-token" type="text" size="30" /></td>
						</tr>
						<tr class="lmc-tr3">
							<td></td>
							<td colspan="2"><button disabled id="confirm-button" type="button">Confirm my token, and enable two-factor auth!</button></td>
						</tr>
					</tbody>
					<tbody class="lmc-tbody-head">
						<tr>
							<td colspan="3">Recovery Procedure</td>
						</tr>
					</tbody>
				</table>
				<div id="recovery-procedure">
					If you lose your token and get locked out of your account, email <a href="mailto:support@linode.com">support@linode.com</a> to regain access to your account.<br />
					<br />
					Should you need Linode to disable your Two-Factor Authentication, the following information is required:<br />
					<ol>
						<li>An image of the front and back of the payment card on file, which clearly shows both the last 6 digits and owner of the card</li>
						<li>An image of the front and back of the matching government-issued photo ID</li>
					</ol>
				</div>
				<div id="more-info" class="info">Read Linode's <a target="_blank" href="https://www.linode.com/docs/security/authentication/two-factor-authentication/linode-manager-security-controls/">two-factor authentication</a> documentation for more information.</div>
			</div>
		</div>
	</body>
</html>