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
Thanks for the great package - it has really saved me some work.
I have implemented Accounts.validateLoginAttempt with my own function which basically checks if the user's email is verified. Looks like:
// server/server.jsMeteor.startup(function(){varisApproved=function(parameters){if(parameters.user&¶meters.user.emails&&(parameters.user.emails.length>0)){varfound=_.find(parameters.user.emails,function(thisEmail){returnthisEmail.verified});if(typeoffound==='undefined'){thrownewMeteor.Error('not-approved','Not approved yet','Your account has not been approved yet. You will be informed by email when it is.')}returnfound&¶meters.allowed;}else{returnfalse;}}Accounts.validateLoginAttempt(isApproved);})
When I try logging in with an account where the email has not been verified I get the error message returned in the alert box but it is surrounded by angle brackets as displayed:
To verify that it wasn't an issue with accounts-base or accounts-password I temporarily added the {{> loginButtons}} call in my layout and the error was displayed correctly.
I am also seeing the brackets on other but not all errors - one that I remember is showing the problem is 'incorrect password', however, 'no match' is displayed correctly.
The text was updated successfully, but these errors were encountered:
Thanks for that. I was actually listening to your podcasts later and heard
you mention that. Might be good to stick a note in the readme to let others
know.
On 22 May 2015 15:39, "Josh Owens" notifications@github.com wrote:
This package isn't really being maintained anymore. I would look at
UserAccounts.
—
Reply to this email directly or view it on GitHub #369 (comment)
.
Thanks for the great package - it has really saved me some work.
I have implemented Accounts.validateLoginAttempt with my own function which basically checks if the user's email is verified. Looks like:
When I try logging in with an account where the email has not been verified I get the error message returned in the alert box but it is surrounded by angle brackets as displayed:
To verify that it wasn't an issue with accounts-base or accounts-password I temporarily added the {{> loginButtons}} call in my layout and the error was displayed correctly.
I am also seeing the brackets on other but not all errors - one that I remember is showing the problem is 'incorrect password', however, 'no match' is displayed correctly.
The text was updated successfully, but these errors were encountered: