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'; ?> ...@@ -103,7 +103,57 @@ require_once 'header.php'; ?>
Restore Password Restore Password
</button> </button>
</div> </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"
Two-Factor Authentication
<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;
<div class="modal-body">
<form action="<?php echo $antiXss->xss_clean(get_config("baseurl")); ?>/index.php#register"
<li>Install Google Authenticator. <a href="" target="_blank">Google Store</a> - <a href="" target="_blank">Apple Store</a></li>
<div class="input-group">
<span class="input-group">Email</span>
<input type="email" class="form-control" placeholder="Email"
<?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"
<?php } echo GetCaptchaHTML();?>
<input name="submit" type="hidden" value="etfa">
<div class="text-center" style="margin-top: 10px;"><input
class="btn btn-primary"
value="Enable 2FA"></div>
<div class="modal-footer">
<button type="button" class="btn btn-danger" data-dismiss="modal">
<?php } if (get_config('vote_system')) { ?>
<div class="text-center" style="margin-top: 5px;"> <div class="text-center" style="margin-top: 5px;">
<button type="button" class="btn btn-danger" data-toggle="modal" <button type="button" class="btn btn-danger" data-toggle="modal"
data-target="#vote-modal"> data-target="#vote-modal">
Supports Markdown
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