Pārlūkot izejas kodu

Add Universal Two Factor support

Also create seperate account security options page

This commit requires a new database table
undefined
spaghetti pirms 7 gadiem
committed by Tomochin
vecāks
revīzija
31dae13a41
3 mainītis faili ar 9 papildinājumiem un 4 dzēšanām
  1. +3
    -3
      design/privateheader.php
  2. +1
    -1
      design/publicheader.php
  3. +5
    -0
      static/styles/global.css

+ 3
- 3
design/privateheader.php Parādīt failu

@@ -533,12 +533,12 @@ if (!empty($Alerts) || !empty($ModBar)) { ?>
<?
}
if (!empty($ModBar)) { ?>
<div class="alertbar blend">
<?=implode(' | ', $ModBar); echo "\n"?>
<div class="alertbar modbar">
<?=implode(' ', $ModBar); echo "\n"?>
</div>
<? }
if (check_perms('site_debug') && !apcu_exists('DBKEY')) { ?>
<div class="alertbar" style="color: white; background: #B53939;">
<div class="alertbar error">
Warning: <a href="tools.php?action=database_key">no DB key</a>
</div>
<? } ?>


+ 1
- 1
design/publicheader.php Parādīt failu

@@ -11,7 +11,7 @@ define('FOOTER_FILE',SERVER_ROOT.'/design/publicfooter.php');
<link rel="shortcut icon" href="favicon.ico?v=<?=md5_file('favicon.ico');?>" />
<link href="<?=STATIC_SERVER ?>styles/public/style.css?v=<?=filemtime(SERVER_ROOT.'/static/styles/public/style.css')?>" rel="stylesheet" type="text/css" />
<?
$Scripts = ['jquery', 'global', 'ajax.class', 'cookie.class', 'storage.class', 'public'];
$Scripts = ['jquery', 'global', 'ajax.class', 'cookie.class', 'storage.class', 'public', 'u2f'];
foreach($Scripts as $Script) {
if (($ScriptStats = G::$Cache->get_value("script_stats_$Script")) === false || $ScriptStats['mtime'] != filemtime(SERVER_ROOT.STATIC_SERVER."functions/$Script.js")) {
$ScriptStats['mtime'] = filemtime(SERVER_ROOT.STATIC_SERVER."functions/$Script.js");


+ 5
- 0
static/styles/global.css Parādīt failu

@@ -934,6 +934,11 @@ input[type="search"] {
max-width: 100%;
}

#publickey {
width: initial;
font-family: monospace;
}

.hidden {
display: none;
}

Notiek ielāde…
Atcelt
Saglabāt