mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-12-04 22:31:58 +01:00
9 lines
309 B
JavaScript
Vendored
9 lines
309 B
JavaScript
Vendored
export default function noEmptyError({ to, next, nextMiddleware, stores }) {
|
|
const { notify } = stores
|
|
|
|
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' });
|
|
}
|
|
else nextMiddleware()
|
|
} |