Add reverse-proxy guard to support authentication proxy

This commit is contained in:
Bubka
2022-03-19 00:14:20 +01:00
parent f3c6b9da5b
commit 911e18c9c4
12 changed files with 230 additions and 40 deletions

View File

@ -17,7 +17,7 @@ import Register from './views/auth/Register'
import PasswordRequest from './views/auth/password/Request'
import PasswordReset from './views/auth/password/Reset'
import WebauthnLost from './views/auth/webauthn/Lost'
import WebauthnRecover from './views/auth/webauthn/Recover'
import WebauthnRecover from './views/auth/webauthn/Recover'
import SettingsOptions from './views/settings/Options'
import SettingsAccount from './views/settings/Account'
import SettingsOAuth from './views/settings/OAuth'

View File

@ -129,6 +129,9 @@
const { data } = await vm.axios.get('api/v1/user/name')
if( data.name ) {
if( data.email ) {
return next({ name: 'accounts' });
}
vm.username = data.name
}
else {