Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix audit-argument-checks error after login
If you successfully subscribed to a publisher, changed user ID, and the second time running the publisher it failed the audit-argument-checks test, the error would say "Did not check() all arguments during publisher 'undefined'" instead of including the correct publisher name. That's because the "recreate Subscription on setUserId" code forgot to include the sub's name in the new Subscription (the name field is literally only used for this error message). Alluded to in #2092
- Loading branch information
875274d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I integrated email verification in the sign up process. When the verification url was opened in browser, an exception occurred in the server-side as following:
The following packages was added in my app.
Is it an issue? how to fix it? Thank you for your advice.
875274d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This means that the
Meteor.publish('filteredUsers')
call does notcheck
all its arguments and is thus incompatible with the audit-argument-checks package. You should change it to check all its arguments!