mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-14 15:58:36 +02:00
Add reverse-proxy guard to support authentication proxy
This commit is contained in:
2
resources/js/routes.js
vendored
2
resources/js/routes.js
vendored
@ -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'
|
||||
|
@ -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 {
|
||||
|
Reference in New Issue
Block a user