Beispiel #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);
	}
}
Beispiel #2
0
func (a *AuthController) LoginUserHandler(c *gin.Context) {
	loginUser(c, db.NewUsersDbService())
}
Beispiel #3
0
func (a *AuthController) RegisterUserHandler(c *gin.Context) {
	registerUser(c, db.NewUsersDbService())
}