Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | db: add tests for users (#6116) | ᴜɴᴋɴᴡᴏɴ | 2020-04-18 |
| | | | | | | | | | | | | | | | | | | | | | * Add new methods * Use Users.Create to replace previous hack * Reduce side effect * Do not clear tables when test failed * test_users_Authenticate * Rename constant * test_users_Create * test_users_GetByEmail * test_users_GetByID * test_users_GetByUsername | ||
* | db: use gorm function to check `ErrRecordNotFound` (#6060) | ᴜɴᴋɴᴡᴏɴ | 2020-04-05 |
| | |||
* | lfs: implement HTTP routes (#6035) | ᴜɴᴋɴᴡᴏɴ | 2020-04-04 |
* Bootstrap with GORM * Fix lint error * Set conn max lifetime to one minute * Fallback to use gorm v1 * Define HTTP routes * Finish authentication * Save token updated * Add docstring * Finish authorization * serveBatch rundown * Define types in lfsutil * Finish Batch * authutil * Finish basic * Formalize response error * Fix lint errors * authutil: add tests * dbutil: add tests * lfsutil: add tests * strutil: add tests * Formalize 401 response |