Commit graph

4 commits

Author SHA1 Message Date
smavros
8041ab2bc4 Implements user registration endpoint 2019-05-22 15:33:34 +02:00
smavros
6289b859bd Implements user.SetPassword() method 2019-05-22 11:20:29 +02:00
smavros
528c391a9f Adds implementation of user.validatePassword():
- Uses bcrypt package for hashing the password
    - Adds password hashing in common.DummyPopulateDB() for testing
2019-05-20 14:03:54 +02:00
smavros
8216767722 Changes in the user package:
- Moves `POST /users` to the users endpoint group where
    authentication is required
    - Renames userLogin to loginRequest
    - Adds userMethods.go source file to the package user
    - Adds type User in the user package which just wrapps the type
    common.User so methods can be added to the type
    - Adds prototypes of methods for setting/validating password and
    updating type User's data
2019-05-20 12:04:37 +02:00