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