You are here: Re: Problem with Code « PHP Programming Language « IT news, forums, messages
Re: Problem with Code

Posted by Schmidty on 01/12/07 16:58

Okay I answered my own question "How would I validate and reply with an
error message if the right username with wrong password came up?" It
was pretty simple fix. At the end of the function 'auth()' I put the
line 'echo "ERROR";'. I might even add a function at this point to send
an email to the actual user indicating that someone tried to log-on
using their username with an invalid password!

Gordon Burditt wrote:
> >How would I validate and reply with an error message if 'the right
> >username with wrong password' came up? Thanks...
>
> You shouldn't have a different error message for the cases:
> right username with the wrong password
> vs.
> wrong username with any password at all
>
> If you do, you're giving away which usernames are correct.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация