Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
entrix
WoWSimpleRegistration
Commits
d9e0f757
Commit
d9e0f757
authored
Jul 28, 2020
by
Amin.MasterkinG
Browse files
2FA added to Icecrown template.
parent
a1723a3a
Changes
1
Hide whitespace changes
Inline
Side-by-side
template/icecrown/tpl/main.php
View file @
d9e0f757
...
...
@@ -119,7 +119,58 @@ 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"
>
×
</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"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment