News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Jani Hartikainen's Blog:
Dealing with different password validation schemes in a single app
May 23, 2009 @ 06:32:17

Jani Hartikainen has written up a new post for his blog looking at how to combine multiple password validation methods inside of a single application.

If your application is well thought out, you would not want to save any data that isn't valid. So what do you do, when you need different validation schemes, say for passwords, depending on some special case? [...] There is a better approach: Using a "policy" - Policies can be used for other things than this too, but let's look at how to use a policy for managing password validation.

He sets up an example scenario where the user sets an invalid and valid password and shows how policies for password validation (regular expression matches and other validation techniques) can provide a simple way to ensure the user has entered the right information.

0 comments voice your opinion now!
policy validation password multiple


blog comments powered by Disqus

Similar Posts

Bogdan Albei's Blog: Create your perfect virtualised PHP development environment

Zumba Engineering Blog: Incorporating Mongounit into Multi-datasource Models with Traits

Zend Developer Zone: Generating and Validating Web Forms With PEAR HTML_QuickForm

Zend Developer Zone: Generating and Validating Web Forms With PEAR HTML_QuickForm

AnyExamples.com: PHP multiple photo thumbnail generator


Community Events





Don't see your event here?
Let us know!


series framework threedevsandamaybe release bugfix tips conference api interview community voicesoftheelephpant introduction zendserver deployment code symfony laravel podcast language list

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework