Skip to content

db.login() Not Working as Intended #127

Closed
@JelaniThompson

Description

@JelaniThompson

Hey there! I've been trying to figure out how to make my authentication for the past few days with no luck. I'm currently hosting my application on localhost without HTTPS. Using db.signup() works as intended but entering the same credentials into db.login() returns this:

{ error: 'badmatch',
  reason: '{"name":"Bradzilla","password":"MegamanDorkBoi"}',
  ref: 3935085039,
  name: 'badmatch',
  status: 500,
  message: '{"name":"Bradzilla","password":"MegamanDorkBoi"}' }

My current code file is this: https://gist.github.com/JelaniThompson/1ca4564a163c83f905d2d5fc9f2b4a1f

I think my issue is that my password is returning plain text instead of a matching salt. How would I be able to solve this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions