Coder Social home page Coder Social logo

Comments (3)

mevdschee avatar mevdschee commented on June 3, 2024

Hi, in the line of the "data" parameter in the ajax call add:

+"&columns=email"

That should limit the output, then to test whether or not records were returned instead of:

if (data == "null") {

use this:

if (data.users.records.length==0) {

in the else clause, just replace

else if (data == "true") {

with:

else {

Hope that helps!

NB: I'm hoping you are not serious about logging in like this. It does not look secure at all.

from php-crud-api.

gmpofficial avatar gmpofficial commented on June 3, 2024

wow that is exactly what I needed. Thank you so much.
No it's not for a real-life login, I'm learning and trying to pull/push data around but also to validate/verify it using an API. I have heard that OAuth is the way to go in terms of authorization with APIs.
PS: thank also for the quick response

from php-crud-api.

mevdschee avatar mevdschee commented on June 3, 2024

You are welcome, enjoy the software!

from php-crud-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.