fix: login page for no auth/proyx
License: MIT Signed-off-by: Henrique Dias <hacdias@gmail.com>pull/739/head
parent
6b42781c21
commit
9c3f563f83
|
@ -3,17 +3,17 @@ import store from '@/store'
|
||||||
import router from '@/router'
|
import router from '@/router'
|
||||||
import i18n from '@/i18n'
|
import i18n from '@/i18n'
|
||||||
import Vue from '@/utils/vue'
|
import Vue from '@/utils/vue'
|
||||||
import { recaptcha, noAuth } from '@/utils/constants'
|
import { recaptcha, loginPage } from '@/utils/constants'
|
||||||
import { login, validateLogin } from '@/utils/auth'
|
import { login, validateLogin } from '@/utils/auth'
|
||||||
import App from '@/App'
|
import App from '@/App'
|
||||||
|
|
||||||
sync(store, router)
|
sync(store, router)
|
||||||
|
|
||||||
async function start () {
|
async function start () {
|
||||||
if (noAuth) {
|
if (loginPage) {
|
||||||
await login('', '', '')
|
|
||||||
} else {
|
|
||||||
await validateLogin()
|
await validateLogin()
|
||||||
|
} else {
|
||||||
|
await login('', '', '')
|
||||||
}
|
}
|
||||||
|
|
||||||
if (recaptcha) {
|
if (recaptcha) {
|
||||||
|
|
|
@ -8,6 +8,7 @@ const signup = window.FileBrowser.Signup
|
||||||
const version = window.FileBrowser.Version
|
const version = window.FileBrowser.Version
|
||||||
const logoURL = `/${staticURL}/img/logo.svg`
|
const logoURL = `/${staticURL}/img/logo.svg`
|
||||||
const noAuth = window.FileBrowser.NoAuth
|
const noAuth = window.FileBrowser.NoAuth
|
||||||
|
const loginPage = window.FileBrowser.LoginPage
|
||||||
|
|
||||||
export {
|
export {
|
||||||
name,
|
name,
|
||||||
|
@ -18,5 +19,6 @@ export {
|
||||||
recaptchaKey,
|
recaptchaKey,
|
||||||
signup,
|
signup,
|
||||||
version,
|
version,
|
||||||
noAuth
|
noAuth,
|
||||||
|
loginPage
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue