Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix nuget/conan/container packages upload bugs (#31967) | Lunny Xiao | 2024-09-05 | 1 | -0/+3 |
| | |||||
* | More refactoring of `db.DefaultContext` (#27083) | JakobDev | 2023-09-15 | 1 | -2/+2 |
| | | | Next step of #27065 | ||||
* | Remove `Named` interface (#26913) | KN4CK3R | 2023-09-05 | 1 | -0/+2 |
| | | | | `Named` is implemented by every `Method` and future implementations should implement the method too. | ||||
* | refactor auth interface to return error when verify failure (#22119) | Lunny Xiao | 2022-12-28 | 1 | -4/+5 |
| | | | | | | | | | | | | | | | | | | | | | | | | | This PR changed the Auth interface signature from `Verify(http *http.Request, w http.ResponseWriter, store DataStore, sess SessionStore) *user_model.User` to `Verify(http *http.Request, w http.ResponseWriter, store DataStore, sess SessionStore) (*user_model.User, error)`. There is a new return argument `error` which means the verification condition matched but verify process failed, we should stop the auth process. Before this PR, when return a `nil` user, we don't know the reason why it returned `nil`. If the match condition is not satisfied or it verified failure? For these two different results, we should have different handler. If the match condition is not satisfied, we should try next auth method and if there is no more auth method, it's an anonymous user. If the condition matched but verify failed, the auth process should be stop and return immediately. This will fix #20563 Co-authored-by: KN4CK3R <admin@oldschoolhack.me> Co-authored-by: Jason Song <i@wolfogre.com> | ||||
* | refactor some functions to support ctx as first parameter (#21878) | Lunny Xiao | 2022-12-03 | 1 | -1/+1 |
| | | | | Co-authored-by: KN4CK3R <admin@oldschoolhack.me> Co-authored-by: Lauris BH <lauris@nix.lv> | ||||
* | Implement FSFE REUSE for golang files (#21840) | flynnnnnnnnnn | 2022-11-27 | 1 | -2/+1 |
| | | | | | | | | | Change all license headers to comply with REUSE specification. Fix #16132 Co-authored-by: flynnnnnnnnnn <flynnnnnnnnnn@github> Co-authored-by: John Olheiser <john.olheiser@gmail.com> | ||||
* | Move some files into models' sub packages (#20262) | Lunny Xiao | 2022-08-25 | 1 | -4/+4 |
| | | | | | | | | | | | | | | | | | | | | | | | | | * Move some files into models' sub packages * Move functions * merge main branch * Fix check * fix check * Fix some tests * Fix lint * Fix lint * Revert lint changes * Fix error comments * Fix lint Co-authored-by: 6543 <6543@obermui.de> | ||||
* | Add support for NuGet API keys (#20721) | KN4CK3R | 2022-08-09 | 1 | -0/+45 |
* Add support for NuGet API key. * lint * Apply suggestions from code review Co-authored-by: delvh <dev.lh@web.de> Co-authored-by: delvh <dev.lh@web.de> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: Lauris BH <lauris@nix.lv> |