Meteor accounts-password + accounts-entry and Password Confirmation

ぃ、小莉子 提交于 2020-01-02 12:24:31

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!