Skip to content

Conversation

ZainulNiaz
Copy link

@@ -0,0 +1,6 @@
{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why this file?

}

func authenticatorForGctl(c *gin.Context) (interface{}, error) {
auth := &types.Login{}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

didn't we decide to change this type? Is it working without a password in the request body?

}
return user, nil
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add a comment here that this function doesn't authenticate as authentication is already done in middleware.. this function is just to get the user

@ZainulNiaz ZainulNiaz force-pushed the gctltoken branch 2 times, most recently from f1aaebf to fd1a268 Compare February 18, 2022 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants