示例#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())
}