Skip to content
This repository was archived by the owner on Jun 27, 2020. It is now read-only.

Commit 9c3f563

Browse files
committed
fix: login page for no auth/proyx
License: MIT Signed-off-by: Henrique Dias <[email protected]>
1 parent 6b42781 commit 9c3f563

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/main.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@ import store from '@/store'
33
import router from '@/router'
44
import i18n from '@/i18n'
55
import Vue from '@/utils/vue'
6-
import { recaptcha, noAuth } from '@/utils/constants'
6+
import { recaptcha, loginPage } from '@/utils/constants'
77
import { login, validateLogin } from '@/utils/auth'
88
import App from '@/App'
99

1010
sync(store, router)
1111

1212
async function start () {
13-
if (noAuth) {
14-
await login('', '', '')
15-
} else {
13+
if (loginPage) {
1614
await validateLogin()
15+
} else {
16+
await login('', '', '')
1717
}
1818

1919
if (recaptcha) {

src/utils/constants.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const signup = window.FileBrowser.Signup
88
const version = window.FileBrowser.Version
99
const logoURL = `/${staticURL}/img/logo.svg`
1010
const noAuth = window.FileBrowser.NoAuth
11+
const loginPage = window.FileBrowser.LoginPage
1112

1213
export {
1314
name,
@@ -18,5 +19,6 @@ export {
1819
recaptchaKey,
1920
signup,
2021
version,
21-
noAuth
22+
noAuth,
23+
loginPage
2224
}

0 commit comments

Comments
 (0)