Authentication

Issue #4 new
viharm repo owner created an issue

Currently phpDBauth simply looks up a user in the database and adds a record if not found.

Proper authentication with a password is needed.

Comments (6)

  1. viharm reporter
    • changed status to open

    Proposal

    • Accept password and not nullify the field (if currently doing so)
    • Also accept another field for modifying the password

      • This is to understand if hashed passwords are stored in the database.
      • Investigate effect of this on backward compatibility
      • Try to retain compatibility by adding this as an optional argument to the function
    • Also accept a boolean switch to select operation from one of the following two modes

      • Lookup/add entry only (as per existing approach)
      • Authentication (as per this proposal)
    • Investigate effect of mode switch on backward compatibility

  2. viharm reporter

    The default mode of operation should be 'lookup only' to maintain backward compatibility. This may change in v03.00.00 (see issue #5).

  3. Log in to comment