Making a registration part on my meteor project. I'm using an "accounts-password" module and I want to know, how can I filter or modify data in "options" parameter?
Accounts.createUser(options, [callback]) - it stores username, email, password.
For example, I want to prevent users create usernames with special symbols (!#@$), like : username.replace(/[^A-Z0-9]/ig, "")
How I can configure that?
I was trying "Accounts.onCreateUser" function, but it's only helps with "profile"(additional) info.