mirror of
https://github.com/danpros/htmly.git
synced 2026-04-17 11:16:00 +05:30
MFA domain
Remove http/https
This commit is contained in:
parent
39a8c50cfd
commit
c0bcb5c5cc
1 changed files with 2 additions and 3 deletions
|
|
@ -8,9 +8,8 @@ use PragmaRX\Google2FA\Google2FA;
|
|||
use BaconQrCode\Renderer\GDLibRenderer;
|
||||
use BaconQrCode\Writer;
|
||||
|
||||
$domain = site_url();
|
||||
$domain = str_replace("https://", "", $domain);
|
||||
$domain = rtrim($domain, "/");
|
||||
$domain = parse_url(site_url());
|
||||
$domain = rtrim($domain['host'] . $domain['path'], "/");
|
||||
$mfa_state = user('mfa_secret', $user);
|
||||
|
||||
if (is_null($mfa_state) || $mfa_state == 'disabled') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue