MCPcopy
hub / github.com/gotify/server / loginAdmin

Method loginAdmin

api/user_test.go:427–430  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

425}
426
427func (s *UserSuite) loginAdmin() {
428 s.db.CreateUser(&model.User{ID: 1, Name: "admin", Admin: true})
429 auth.RegisterAuthentication(s.ctx, nil, 1, "")
430}
431
432func (s *UserSuite) loginUser() {
433 s.db.CreateUser(&model.User{ID: 1, Name: "user", Admin: false})

Calls 2

RegisterAuthenticationFunction · 0.92
CreateUserMethod · 0.65

Tested by

no test coverage detected