GithubHelp home page GithubHelp logo

Comments (5)

pmjones avatar pmjones commented on August 26, 2024

It's not an assumption; the use passes the column names, so he says exactly what they are.

from aura.auth.

harikt avatar harikt commented on August 26, 2024

@pmjones not sure what you mean.

from aura.auth.

pmjones avatar pmjones commented on August 26, 2024

I mean, we're not assuming anything. The developer using the package specifies the columns he wants to select; we say the first one has to be the username column, and the second one has to be the password column. Am I missing your point maybe?

from aura.auth.

harikt avatar harikt commented on August 26, 2024

ok. $cols sounds the columns I need to fetch. So basically I just didn't made in the order they were.

So the order was something like

$cols = array(
    'username',
    'email',
    'id',
    'password',
    'fullname',
    'website',
    'twitter'
);

and I figured out that the username is what it expects to be column 0 and password as column 1. What I feel good is is if this is an associative array

$cols = array(
    'username' => 'username',
    'email',
    'id',
    'password' => 'password',
    'fullname',
    'website',
    'twitter'
);

the order doesn't matters. And we can throw really the exception that username is not present / password not present.

Else if you look at the first array both the cols[0] and cols[1] are present and we don't get an exception and only saying password incorrect exception. Which I feel is wrong. Docs may fix / mention first column is username and second column is password. But seems good to be associative in my opinion.

Thank you.

from aura.auth.

pmjones avatar pmjones commented on August 26, 2024

This does seem like a doc fix, not a technical issue.

Regarding associative, I was thinkging we want to leave the option for "column" => "alias" in the future.

from aura.auth.

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.