mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-24 20:05:24 +02:00
Complete SSO (user model, error cases, tests, views) & Add github provider
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
export default function noEmptyError({ to, next, nextMiddleware, stores }) {
|
||||
const { notify } = stores
|
||||
|
||||
if (notify.err == null) {
|
||||
if (notify.err == null && ! to.query.err) {
|
||||
// return to home if no err object is set to prevent an empty error message
|
||||
next({ name: 'accounts' });
|
||||
}
|
||||
|
Reference in New Issue
Block a user