Commit 1e08ad09 authored by Amin.MasterkinG's avatar Amin.MasterkinG
Browse files

Add 2fa to Kaelthas template.

parent d9e0f757
......@@ -103,7 +103,57 @@ require_once 'header.php'; ?>
Restore Password
</button>
</div>
<?php if (get_config('vote_system')) { ?>
<?php if (get_config('2fa_support')) { ?>
<div class="text-center" data-aos="fade-up" data-aos-delay="100" style="margin-top: 5px;">
<button type="button" class="btn btn-default" data-toggle="modal"
data-target="#e2fa-modal">
Two-Factor Authentication
</button>
</div>
<div class="modal" id="e2fa-modal">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Two-Factor Authentication</h4>
<button type="button" class="close" data-dismiss="modal">&times;
</button>
</div>
<div class="modal-body">
<form action="<?php echo $antiXss->xss_clean(get_config("baseurl")); ?>/index.php#register"
method="post">
<div>
<ul>
<li>Install Google Authenticator. <a href="https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2" target="_blank">Google Store</a> - <a href="https://apps.apple.com/app/google-authenticator/id388497605" target="_blank">Apple Store</a></li>
</ul>
</div>
<div class="input-group">
<span class="input-group">Email</span>
<input type="email" class="form-control" placeholder="Email"
name="email">
</div>
<?php if (empty(get_config('battlenet_support'))) { ?>
<div class="input-group">
<span class="input-group">Username</span>
<input type="text" class="form-control" placeholder="Username"
name="username">
</div>
<?php } echo GetCaptchaHTML();?>
<input name="submit" type="hidden" value="etfa">
<div class="text-center" style="margin-top: 10px;"><input
type="submit"
class="btn btn-primary"
value="Enable 2FA"></div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-danger" data-dismiss="modal">
Close
</button>
</div>
</div>
</div>
</div>
<?php } if (get_config('vote_system')) { ?>
<div class="text-center" style="margin-top: 5px;">
<button type="button" class="btn btn-danger" data-toggle="modal"
data-target="#vote-modal">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment