Skip to content

Commit

Permalink
fix: login page for no auth/proyx
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
  • Loading branch information
hacdias committed Feb 15, 2019
1 parent 6b42781 commit 9c3f563
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/main.js
Expand Up @@ -3,17 +3,17 @@ import store from '@/store'
import router from '@/router'
import i18n from '@/i18n'
import Vue from '@/utils/vue'
import { recaptcha, noAuth } from '@/utils/constants'
import { recaptcha, loginPage } from '@/utils/constants'
import { login, validateLogin } from '@/utils/auth'
import App from '@/App'

sync(store, router)

async function start () {
if (noAuth) {
await login('', '', '')
} else {
if (loginPage) {
await validateLogin()
} else {
await login('', '', '')
}

if (recaptcha) {
Expand Down
4 changes: 3 additions & 1 deletion src/utils/constants.js
Expand Up @@ -8,6 +8,7 @@ const signup = window.FileBrowser.Signup
const version = window.FileBrowser.Version
const logoURL = `/${staticURL}/img/logo.svg`
const noAuth = window.FileBrowser.NoAuth
const loginPage = window.FileBrowser.LoginPage

export {
name,
Expand All @@ -18,5 +19,6 @@ export {
recaptchaKey,
signup,
version,
noAuth
noAuth,
loginPage
}

0 comments on commit 9c3f563

Please sign in to comment.