- Joined
- Jan 5, 2010
- Messages
- 209
- Reaction score
- 54
Re: I'm leaving the Habbo section in a month - 2 weeks -> FrostCMS 1.0 BETA
Sorry,
Its:
Ofcourse this is bad example. It isnt exploit safe etc. But for that its a preview. Only look at select query.
The AND is now OR.
Because otherwise they need to fill in their emailadress and their username.
Greetz,
Edit the Login Query so it check Both
Dont look at the CMS (Have my own ), but should be like:
SELECT * FROM users WHERE email = .... AND username = ....
Sorry,
Its:
PHP:
$username = $_POST['username'];
$email = $_POST['email'];
SELECT * FROM users WHERE email = $email OR username = $username
The AND is now OR.
Because otherwise they need to fill in their emailadress and their username.
Greetz,