mirror of
				https://github.com/gravitl/netmaker.git
				synced 2025-10-31 20:22:44 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			345 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			345 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package functions
 | |
| 
 | |
| import (
 | |
| 	"net/http"
 | |
| 
 | |
| 	"github.com/gravitl/netmaker/models"
 | |
| )
 | |
| 
 | |
| func LoginWithUserAndPassword(username, password string) *models.SuccessResponse {
 | |
| 	authParams := &models.UserAuthParams{UserName: username, Password: password}
 | |
| 	return Request[models.SuccessResponse](http.MethodPost, "/api/users/adm/authenticate", authParams)
 | |
| }
 | 
