Skip to content
Snippets Groups Projects
Commit 6f696911 authored by Florent Gluck's avatar Florent Gluck
Browse files

fixed comments about curl request to match server code

parent 52fdeff4
Branches
No related tags found
No related merge requests found
......@@ -93,8 +93,7 @@ func (cmd *Login)Run(args []string) int {
*/
// Returns the token if the authentication was successful or an error if it wasn't.
//
// curl -X POST http://localhost:8000/login -H 'Content-Type: application/json' -d '{"email": "johndoe@nexus.org", "pwd":"pipomolo"}'
// curl --cacert ca-cert.pem -X POST https://localhost:8000/login -H 'Content-Type: application/json' -d '{"email": "johndoe@nexus.org", "pwd":"pipomolo"}'
// Returns a jwt token if authentication was successful:
// {"token":"<jwt token>"}
func GetToken(user, pwd string) (string, error) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment