Fix u2f with nginx rp

This commit is contained in:
andryyy
2017-03-09 10:48:04 +01:00
parent d6cdc846d8
commit e2dc15774f
3 changed files with 5 additions and 5 deletions

View File

@@ -3,8 +3,7 @@ require_once('inc/prerequisites.inc.php');
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$pdo->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_OBJ);
$scheme = isset($_SERVER['HTTPS']) ? "https://" : "http://";
$u2f = new u2flib_server\U2F($scheme . $_SERVER['HTTP_HOST']);
$u2f = new u2flib_server\U2F('https://' . $_SERVER['HTTP_HOST']);
function getRegs($username) {
global $pdo;
@@ -154,4 +153,4 @@ Action: <br />
}
?>
</body>
</html>
</html>