Пример #1
0
func TestRegisterUser(t *testing.T) {
	body := register(t)

	res, err := db.NewUsersDbService().FindId(body["email"], nil)

	if res == nil || err != nil {
		t.Fatal("User not created correctly", res, err);
	}
}
Пример #2
0
func (a *AuthController) LoginUserHandler(c *gin.Context) {
	loginUser(c, db.NewUsersDbService())
}
Пример #3
0
func (a *AuthController) RegisterUserHandler(c *gin.Context) {
	registerUser(c, db.NewUsersDbService())
}