Maybe you use ‘@’ (at) in username ?
If is it, Meteor use email method to authenticate, so if you want to keep a ‘@’ in username you must have identical username and email, or don’t use a ‘@’ in username.
Yes, actually I didn’t understand it myself, but the code is like that:
/**
* @summary Log the user in with a password.
* @locus Client
* @param {Object | String} selector
* Either a string interpreted as a username or an email; or an object with a
* single key: `email`, `username` or `id`. Username or email match in a case
* insensitive manner.
* @param {String} password The user's password.
* @param {Function} [callback] Optional callback.
* Called with no arguments on success, or with a single `Error` argument
* on failure.
* @importFromPackage meteor
*/
Meteor.loginWithPassword = (selector, password, callback) => {
if (typeof selector === 'string')
if (!selector.includes('@'))
selector = {username: selector};
else
selector = {email: selector};
[cut]