Page 1 of 1

Compare passwords at registration

Posted: Thu Jan 23, 2014 2:48 am
by killfrog47
So I am working on some user registration and login system. I want to compare the users password before creating the account. What is the best way of doing that? Using PHP or javascript? I know HOW to do it just not sure where to do it, server or client side.

Re: Compare passwords at registration

Posted: Thu Jan 23, 2014 6:31 pm
by ScTech
Personally I think server side. Since you should be using input type password, the user won't know which part of their two fields are different so they would have to retype it anyways.

Re: Compare passwords at registration

Posted: Fri Jan 24, 2014 11:45 am
by killfrog47
ScTech wrote:Personally I think server side. Since you should be using input type password, the user won't know which part of their two fields are different so they would have to retype it anyways.


gotcha gotcha alrighty =) thanks!