mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-12-11 17:50:39 +01:00
7 lines
265 B
JavaScript
Vendored
7 lines
265 B
JavaScript
Vendored
export default function noEmptyError({ to, next, nextMiddleware }) {
|
|
if (to.params.err == undefined) {
|
|
// return to home if no err object is provided to prevent an empty error message
|
|
next({ name: 'accounts' });
|
|
}
|
|
else nextMiddleware()
|
|
} |