mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-06-03 00:35:49 +02:00
Send useful URLs to the front-end
This commit is contained in:
parent
189f02ae9e
commit
4d56e74b6f
@ -29,6 +29,8 @@ class SinglePageController extends Controller
|
|||||||
$locales = collect(config('2fauth.locales'))->toJson(); /** @phpstan-ignore-line */
|
$locales = collect(config('2fauth.locales'))->toJson(); /** @phpstan-ignore-line */
|
||||||
$openidAuth = config('services.openid.client_secret') ? true : false;
|
$openidAuth = config('services.openid.client_secret') ? true : false;
|
||||||
$githubAuth = config('services.github.client_secret') ? true : false;
|
$githubAuth = config('services.github.client_secret') ? true : false;
|
||||||
|
$installDocUrl = config('2fauth.installDocUrl');
|
||||||
|
$ssoDocUrl = config('2fauth.ssoDocUrl');
|
||||||
|
|
||||||
// if (Auth::user()->preferences)
|
// if (Auth::user()->preferences)
|
||||||
|
|
||||||
@ -43,6 +45,10 @@ class SinglePageController extends Controller
|
|||||||
],
|
],
|
||||||
'subdirectory' => $subdir,
|
'subdirectory' => $subdir,
|
||||||
])->toJson(),
|
])->toJson(),
|
||||||
|
'urls' => collect([
|
||||||
|
'installDocUrl' => $installDocUrl,
|
||||||
|
'ssoDocUrl' => $ssoDocUrl
|
||||||
|
]),
|
||||||
'defaultPreferences' => $defaultPreferences,
|
'defaultPreferences' => $defaultPreferences,
|
||||||
'subdirectory' => $subdir,
|
'subdirectory' => $subdir,
|
||||||
'isDemoApp' => $isDemoApp,
|
'isDemoApp' => $isDemoApp,
|
||||||
|
@ -13,6 +13,7 @@ return [
|
|||||||
'repository' => 'https://github.com/Bubka/2FAuth',
|
'repository' => 'https://github.com/Bubka/2FAuth',
|
||||||
'latestReleaseUrl' => 'https://api.github.com/repos/Bubka/2FAuth/releases/latest',
|
'latestReleaseUrl' => 'https://api.github.com/repos/Bubka/2FAuth/releases/latest',
|
||||||
'installDocUrl' => 'https://docs.2fauth.app/getting-started/installation/self-hosted-server/',
|
'installDocUrl' => 'https://docs.2fauth.app/getting-started/installation/self-hosted-server/',
|
||||||
|
'ssoDocUrl' => 'https://docs.2fauth.app/security/authentication/sso/',
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
1
resources/js/app.js
vendored
1
resources/js/app.js
vendored
@ -16,6 +16,7 @@ const $2fauth = {
|
|||||||
isDemoApp: window.isDemoApp,
|
isDemoApp: window.isDemoApp,
|
||||||
isTestingApp: window.isTestingApp,
|
isTestingApp: window.isTestingApp,
|
||||||
langs: window.appLocales,
|
langs: window.appLocales,
|
||||||
|
urls: window.urls,
|
||||||
}
|
}
|
||||||
app.provide('2fauth', readonly($2fauth))
|
app.provide('2fauth', readonly($2fauth))
|
||||||
|
|
||||||
|
1
resources/views/landing.blade.php
vendored
1
resources/views/landing.blade.php
vendored
@ -25,6 +25,7 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var appSettings = {!! $appSettings !!};
|
var appSettings = {!! $appSettings !!};
|
||||||
var appConfig = {!! $appConfig !!};
|
var appConfig = {!! $appConfig !!};
|
||||||
|
var urls = {!! $urls !!};
|
||||||
var defaultPreferences = {!! $defaultPreferences->toJson() !!};
|
var defaultPreferences = {!! $defaultPreferences->toJson() !!};
|
||||||
var appVersion = '{{ config("2fauth.version") }}';
|
var appVersion = '{{ config("2fauth.version") }}';
|
||||||
var isDemoApp = {!! $isDemoApp !!};
|
var isDemoApp = {!! $isDemoApp !!};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user