mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-16 16:07:33 +08:00
add 2fa settings
This commit is contained in:
@@ -8,6 +8,7 @@ import SignUpPage from '../views/mobile/Signup.vue';
|
||||
import SettingsPage from '../views/mobile/Settings.vue';
|
||||
import AboutPage from "../views/mobile/About.vue";
|
||||
import UserProfilePage from "../views/mobile/users/UserProfile.vue";
|
||||
import TwoFactorAuthPage from "../views/mobile/users/TwoFactorAuth.vue";
|
||||
import SessionListPage from "../views/mobile/users/SessionList.vue";
|
||||
|
||||
function checkLogin(to, from, resolve, reject) {
|
||||
@@ -73,6 +74,11 @@ const routes = [
|
||||
component: UserProfilePage,
|
||||
beforeEnter: checkLogin
|
||||
},
|
||||
{
|
||||
path: '/user/2fa',
|
||||
component: TwoFactorAuthPage,
|
||||
beforeEnter: checkLogin
|
||||
},
|
||||
{
|
||||
path: '/user/sessions',
|
||||
component: SessionListPage,
|
||||
|
||||
Reference in New Issue
Block a user