问题
I don't see any options in the accounts-entry package, nor the accounts-password package, that allows for a password-confirmation field in the signup form in accounts-entry. Am I missing something?
回答1:
No it dosnt have a verify password field on the package, you need to create by your own with simple JS
if(password === validationPassword){
Meteor.call("createUsers",mail,password,profile);
}
This type of action can only be completed in the client side and not on the server side, because the password that the user type is sent to the server (hashed)
, so we cant make any server validation.
I think with a simple if (===)
its ok, And Also the easy way
回答2:
Asked around and the solution I ultimately landed on was to use a different package. I used the joshowens:accounts-entry package, I'd recommend it to anybody.
来源:https://stackoverflow.com/questions/28094316/meteor-accounts-password-accounts-entry-and-password-confirmation