jaleonardo
jaleonardo
Sorry for commenting on an old post but I've also encountered this issue. The current code processes only the username and password no matter how many fields are sent during...
> @apps-caraga Are you wiling to do a PR that provides this functionality and mitigates the SQL injection risk? @mevdschee Still trying to make the code work to my requirements,...
> A regex that filters non-alpha is: > > ``` > $clean = preg_replace('/[^a-z0-9]/','',$dirty); > ``` > > See: https://regexr.com/ > > NB: I think sanitizing is not the way...
The idea is, starting at line 8112 of api.php ``` $data = json_decode($registerUser, true); $data = is_array($data) ? $data : (array)$body; //we'll get the original posted data $userTableColumns = $table->getColumnNames();...
So I got this code working, but I have some issues. I got the following error when I insert a new user with existing email address. `Fatal error: Uncaught PDOException:...
To get only the records owned by a user, the relevant table e.g. "Articles" should have a foreign key column containing the user id. **Sample schema** 1. Articles table (Sample...
So I just got a firebase auth working and yup, the $_SESSION['claims'] variable contains several pieces of user data. For our purpose, the user_id , and the email seems to...
> Is it ready to merge? Did you accidentally close it? It still causes fatal error on duplicate keys exception so I closed it to review. Basically, since we are...
@mevdschee, Good day! I've added `try{}catch` around the **createSingle** invocation when registring new user so I can suppress the PDOException on duplicate key It's not a very elegant solution but...
I know this is an old topic, just sharing some thoughts on this. Essentially, the PHP-CRUD-API works as it is. Now for emailing, integrating phpmailer seems to add unnecessary bloat...