mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-12-11 17:50:39 +01:00
8 lines
250 B
JavaScript
Vendored
8 lines
250 B
JavaScript
Vendored
export default function noEmptyError({ to, next }) {
|
|
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()
|
|
} |