Comments (5)
What happens when you log in? Does it give you a blank page, or does it tell you the login details are wrong? Or does it seem like you are logged in, but never actually set up a session for you so you can't access anything?
As for the IP, is it a VPS/Dedicated server you're using, or shared hosting?
Are you using Cloudflare or any other kind of reverse proxy? If you're using Cloudflare, you need to make sure that in the config file you have define('CLOUDFLARE', true);
(it's false by default). Cloudflare is the only reverse proxy that is supported. For any others, it will just give you one of the provider's IP addresses as that's where the server sees the request coming from.
If you do a WHOIS lookup on the IP address, who does it belong to? Your local ISP or your hosting provider? Or is it something completely different? Not sure what else it could be though.
from upld.
When I log in it just tells me the login details are wrong.
In my closed environment I'm running a WAMPserver.
My real server is self-hosted. I'm running multiple websites on it, none with this issue.
Yes, I'm using cloudflare, that could maybe be the issue (though I don't understand why since upld just connects to the locally installed mysql server - MariaDB).
Edit: I tried changing to define('CLOUDFLARE', true); in the config, but it didn't change anything, except that it now shows my real IP. The other issues remains.
I did a WHOIS lookup and it belongs to my local ISP.
It's like upld can't connect to the database when looking up if the user exists, but has no problems writing to the database. It's really weird.
from upld.
I've deleted the database and user and done everything from the beginning again (with upld). Nothing changes.
from upld.
Just to clarify, the comment about Cloudflare was re: the IP being different in the database. If it goes through Cloudflare, that's the IP address that the website will see for the user (unless you set define('CLOUDFLARE', true)
in which case it will verify that the IP belongs to Cloudflare, then check the HTTP_CF_CONNECTING_IP
header and use that instead.
Looking at the login and registration pages, the hashing is done by PHP on registration, and then by the MySQL server when you try and log in, so I can only imagine the difference between MySQL servers is what's causing the issue.
I've pushed an update to login.php
See if that fixes your issue
from upld.
Yes! That fixed the issue! Great!
Sorry for taking so long to respond, I've been busy and it slipped my mind, but it works like a charm now, thanks 😀
from upld.
Related Issues (15)
- Feature Request: Drag-and-drop / Paste from Clipboard HOT 3
- Google fonts URL hardcoded insecure HOT 1
- Error on non transparent gif HOT 1
- Feature request: scan image folder HOT 2
- active mail
- Security contact HOT 1
- possible to add extention HOT 5
- Friendly URLs for nginx? HOT 1
- recaptcha HOT 1
- feature request: allowed websites HOT 1
- feature request: disallow anonymous upload HOT 1
- feature request: View All image & perpage , Sort by upload time HOT 2
- Add CSRF protection for actions HOT 1
- administer all accounts HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from upld.