mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-02-22 21:30:56 +01:00
Re-enable the noEmptyError middleware
This commit is contained in:
parent
62accb20fc
commit
791421b105
@ -1,5 +1,4 @@
|
||||
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' });
|
||||
|
Loading…
Reference in New Issue
Block a user