GithubHelp home page GithubHelp logo

Comments (6)

idanwe avatar idanwe commented on June 12, 2024 1

Would you like to make a PR for that?

from accounts-password-client-side.

mariohmol avatar mariohmol commented on June 12, 2024

I found the error.. my user has just a username as a email..so he does not have a email attribute.

and the selector if checking if has @ to find by email.. isnt possible to make a equals username OR email?

https://github.com/idanwe/accounts-password-client-side/blob/master/dist/accounts-password-client-side.bundle.js#L1698

from accounts-password-client-side.

idanwe avatar idanwe commented on June 12, 2024

@mariohmol, Good to hear that you solved it.

I saw that you had multiple issues about this problem.
Therefor, does the package work for you? Does the issue can be closed?

Regard your question, as far as I know you need to explicit pass object for email or username. Otherwise, pass a string to the method will try to identify the "type" by the existence of @ accounts-password code.

from accounts-password-client-side.

mariohmol avatar mariohmol commented on June 12, 2024

Yes.. i could made it working using user and email, but if you see this link:

There for instance says an use email or username:

"user Object or String
Either a string interpreted as a username or an email; or an object with a single key: email, username or id. Username or email match in a case insensitive manner"

But if i do that using this module it required to pass both and to be honest thats allright.. tha only suggestion that i would do is about documentation on readme.. someome code snippets in readme and tips like this (must use email and user).. would be great..

from accounts-password-client-side.

idanwe avatar idanwe commented on June 12, 2024

@mariohmol it shouldn't be different from what the meteor docs says. Due to it is client side of the meteor code just bundled separately.
So, you don't need to expect for any differences.

from accounts-password-client-side.

mariohmol avatar mariohmol commented on June 12, 2024

I see.. so maybe there need to be fixed.. but anyway.. if you point your readme to this link https://guide.meteor.com/accounts.html#accounts-password would be good!

.. and even there i cant find a example using loginWithPassword.. its crazy...

from accounts-password-client-side.

Related Issues (8)

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.