Commit graph

20 commits

Author SHA1 Message Date
walkerwmanuel 71d66b7f93 Refactored user functions to use refrences rather than values 2022-12-20 15:10:40 -05:00
0xdcarns 8584699944 fixed bugs around user update & user delete false error with no nets 2022-12-14 16:26:18 -05:00
kayos@tcp.direct e878e4820a
Fixes+Chores: avoid de-referencing nil ptrs + lint
- Avoid referencing conditions we know are false/true

 - Avoid using name of imported package as variable

 - Avoid broken (see list item 1) if else statement in `ipservice.go` by refactoring to switch statement

 - When assigning a pointer value to a variable along with an error, check that error before referencing that pointer. Thus avoiding de-referencing a nil and causing a panic.
  *** This item is the most important ***

 - Standard gofmt package sorting + linting; This includes fixing comment starts for go doc

 - Explicit non-handling of unhandled errors where appropriate (assigning errs to _ to reduce linter screaming)

 - Export ErrExpired in `netcache` package so that we can properly reference it using `errors.Is` instead of using `strings.Contains` against an `error.Error()` value
2022-12-06 20:11:20 -08:00
0xdcarns ea854a6b98 fixed admin issue and potential panics 2022-11-10 14:54:53 -05:00
Abhishek Kondur faf7addcf5 Merge branch 'bugfix_v0.16.1_ee_checks' of https://github.com/gravitl/netmaker into feature_dyn_sec_latest 2022-09-26 18:09:34 +05:30
Abhishek Kondur f632bec11d merge conflicts resolved 2022-09-26 17:47:20 +05:30
Matthew R. Kasun 5f7d6ea1ef logic.Is_EE --> systemcfg.Is_EE 2022-09-25 07:11:26 -04:00
afeiszli 42f0af85b6 set networkuser access level 2022-09-14 15:33:26 -04:00
afeiszli b670755cce refactoring for ee 2022-09-14 13:26:31 -04:00
afeiszli 8a1ba674a7 ee fixes 2022-09-14 09:58:01 -04:00
0xdcarns 88cd0a6497 initial commit 2022-09-13 15:25:56 -04:00
0xdcarns de91533372 added better state management to make OAuth sign-ins HA 2022-08-04 10:03:39 -04:00
Matthew R. Kasun 0c4f5b100b update validation of usernames 2022-06-27 13:51:09 -04:00
afeiszli 932712619a remade server logs 2021-12-06 15:31:08 -05:00
0xdcarns 7ddf36520a rebased on develop 2021-10-26 12:58:50 -04:00
0xdcarns 6891b52cee updated logs, ensured admins could not be edited 2021-10-25 16:38:59 -04:00
0xdcarns c002c30ba8 added ability for admisn to change user's networks 2021-10-25 14:51:52 -04:00
0xdcarns 36d60eba64 github auth added 2021-10-22 13:12:03 -04:00
0xdcarns 7939e5968f good first draft, fixed test 2021-10-21 20:32:23 -04:00
0xdcarns 4e4e8b3ab5 began oauth implementation 2021-10-21 15:28:58 -04:00