Skip to content

Authenticate with Email and Password #237

@nelsonic

Description

@nelsonic

Registration with Email and Password Should be the default for people who do not have (or do not want to use their) Google Account to Auth.

We already have a provision in the person schema for an email and password:

https://github.com/dwyl/app-mvp-phoenix/tree/25fd39c58e892cfbbc5692772631bde1382a6f46#schema

Borrow from: https://github.com/nelsonic/rumbl/blob/master/apps/rumbl/lib/rumbl/accounts/user.ex

Note: our implementation of Auth using email and password will draw on the example in the Book.
If you haven't read Programming Phoenix 1.4, the (basically Official but not free) book written by Bruce Tate, Chris McCord (Creator of Phoenix) and José Valim (Creator of Elixir), start now! 📖
Chapter 5: Authenticating Users covers auth from first principals and is essential reading for understanding how to do it the Phoenix way (using plug).
But Don't expect to understand Chapter 5 without reading the previous chapters. As with anything in CS/programming the knowledge builds on previously laid foundations. Without it you'll be "confused".
I would highly recommend that anyone wanting to learn/understand Phoenix read the book cover-to-cover and write out all the examples e.g: https://github.com/nelsonic/rumbl

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussShare your constructive thoughts on how to make progress with this issueenhancementNew feature or enhancement of existing functionalityepicA feature idea that is large enough to require a sprint (5 days) or more and has smaller sub-issues.needs-criterianeeds-uiA feature idea that needs UI in order to be discussed/built.priority-3Third priority. Considered "Nice to Have". Not urgent.technicalA technical issue that requires understanding of the code, infrastructure or dependencies

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions