You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am calling Accounts.createUser() on client. On server I have defined two functions:
Accounts.onCreateUser -> hook for createuser before user is created
Accounts.validateLoginAttempt -> Called whenever a login is attempted
When Accounts.createUser() on client is successful, there is auto login. But if it is unsuccessful, there is no login attempt.
It is observed that when validateLoginAttempt() is defined and a collection2 validaton fails, the server side has "exception createuser undefined.." error. Internal server error 500 is passed to client.
On preliminary investigation with node-inspector, there is a stack overflow crash on server.
If the validateLoginAttempt() is NOT defined, everything works as expected i.e. invalidation by collection2 sanitizes the error and correct error message is sent to client.
All this is observed on Meteor verson 1.2.0.2. Meteor 1.1 was working fine.
The text was updated successfully, but these errors were encountered:
I am calling Accounts.createUser() on client. On server I have defined two functions:
Accounts.onCreateUser -> hook for createuser before user is created
Accounts.validateLoginAttempt -> Called whenever a login is attempted
When Accounts.createUser() on client is successful, there is auto login. But if it is unsuccessful, there is no login attempt.
It is observed that when validateLoginAttempt() is defined and a collection2 validaton fails, the server side has "exception createuser undefined.." error. Internal server error 500 is passed to client.
On preliminary investigation with node-inspector, there is a stack overflow crash on server.
If the validateLoginAttempt() is NOT defined, everything works as expected i.e. invalidation by collection2 sanitizes the error and correct error message is sent to client.
All this is observed on Meteor verson 1.2.0.2. Meteor 1.1 was working fine.
The text was updated successfully, but these errors were encountered: