...

View Full Version : How secure would this be? (login)



justincredible
08-30-2006, 06:29 PM
I am not very well read on security when it comes to php so I am not sure how secure the following scenario would be.

With the site I am currently working on I want to have a login form. There will only be two people logging on to the site (myself and my girlfriend, although she will be loggin in very seldom I image). Instead of connecting to a database to get the username and passwords, is it safe to just have them hard coded into the php to check and see if the given values match? Its not a huge concern as it is just a site I am creating for our future wedding. I could do it all without the login but I would like it to have a backend so we can do some editing whenever/wherever we are.

Thanks!

mlseim
08-30-2006, 06:35 PM
For what you're doing, no problem.

If someone sees the password written down on a desk or something,
they could go in and wreck things ... but who is going to really take
the time?

For quick and easy password checks, hardcoding will work good.

justincredible
08-30-2006, 06:39 PM
Awesome, thanks! I really didn't see where it would be a problem but wanted to check.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum