Comments (12)
To be clear, also:
I have created the two tables (in an existing database for this project).
I have customized dbconf and config files with my relevant info.
And I have added <?php require "login/loginheader.php"; ?>
onto each page.
I am not sure what is going wrong. This is happening when I try and test registering in my browser.
from php-login.
Are you letting users verify their own accounts or you're sending it to an admin email to be verified?
from php-login.
Thank you for the reply!
I have an admin email to verify.
It also looks like that error could be coming from the functions.php.
I'm still a little green but everything seems to look right and I didn't change anything outside of the Readme instructions. The only thing I did different is added the tables to an existing database instead of making one named "login".
Thanks for the help.
from php-login.
You're welcome, I'm glad to help.
Check on your 'members' table. If you already have an user registered with the same email that you've informed as admin, it won't work.
On a deeper level, it is due to a MySQL error since the column 'email' on table 'members' is an index. So basically what happens is that when you attempt to register another user with an email that already exists, you're trying to corrupt an index, thus the error.
Hope this helps.
from php-login.
About the MySQL indexes, is's supposed to be like that, there is no bugs over there.
The problem lies in the PHP code, try this instead: #33 (comment)
The issue title is misleading, but it fixes a bug causing the email written in the signup form to be replaced by the admin email, which leads to problems when creating users.
from php-login.
@JanPetterMG Hey Jan, when I said MySQL error, I didn't mean a bug on MySQL. I meant an error generated inside MySQL. Sure it is the default behavior for indexes.
The link shows a pretty good alternative.
from php-login.
My 'Members' sql table is completely empty. I have been trying to test it as well as add myself as a user/admin. Is there a different process I should be using to add myself first before the signup form will work? Image of what it looks like below.
Interesting though, I decided to test it out with
$admin_email = '';
rather than my email, and now I will get the error 'Must provide a valid email address' even though there is a valid email address in the box. Image below as well.
Again, I really appreciate the help guys!!
from php-login.
Did you apply the changes suggested on the link JanPetterMG posted (issue #33)? If yes, undo them first; I mean, get your files as they were originally.
from php-login.
Why is the email field yellow? Are you using some auto-fill (browser/extension)? Have you tried without it, or even in another browser?
Signup using that email succeed in my little test, no errors (don't worry, no emails sent).
Looks like a javascript verification issue, are you sure scripts are enabled in the browser and that the file is uploaded at the right place?
Do you find the script in the browser if you replace signup.php
with js/signup.js
?
Additionally, what version did you download, the master
or v2.0
?
from php-login.
No Kernelsp, I didn't make those changes cause they didn't seem like a fix for what I was experiencing.
JanPetterMG, yeah I do have an auto fill but I tried it on Chrome, Firefox and Safari (I never use safari so it is default settings.
When I check the script in the browser I get
I also have a slightly changed index.php. Maybe that could be the problem?
I am not exactly sure which one I downloaded but it was this month.
I really do appreciate this help.
from php-login.
I am going to start fresh and reinstall. I will report back.
from php-login.
I started from square one and followed everything to a T and it worked.
Thanks for the help, I originally must have just erased a comma along the way somewhere.
from php-login.
Related Issues (20)
- Admin Reset User Passwords
- Solution to authentication problem MySQL 8
- i got this error after installation on local pc(XAMPP) HOT 4
- demo? HOT 3
- Freshinstall (automated)
- How to get username by javascript? HOT 1
- how to change smtp to PHP mail() HOT 1
- Bootsrap4 upgrade and documentation
- Having alot of issues upon installing HOT 12
- Short Login Time HOT 2
- Blank page after installation HOT 1
- issue on database
- Direct PDO queries
- Problems with API
- Bad Request
- Trying to access array offset on value of type bool HOT 1
- "PHP-Login-master/vendor/autoload.php " Is Missing HOT 5
- SMTP error: Authentication failed: Password command failed
- VCRUNTIME140.dll was not found
- Error trying to enter /login/ folder
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 php-login.