mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-20 18:15:54 +02:00
Complete SSO (user model, error cases, tests, views) & Add github provider
This commit is contained in:
1
resources/js/router/middlewares/authGuard.js
vendored
1
resources/js/router/middlewares/authGuard.js
vendored
@@ -11,6 +11,7 @@ export default async function authGuard({ to, next, nextMiddleware, stores }) {
|
||||
await user.loginAs({
|
||||
name: currentUser.name,
|
||||
email: currentUser.email,
|
||||
oauth_provider: currentUser.oauth_provider,
|
||||
preferences: currentUser.preferences,
|
||||
isAdmin: currentUser.is_admin,
|
||||
})
|
||||
|
Reference in New Issue
Block a user