-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix password in xml body #58
Conversation
Version 3.0.2
Improve GitHub Actions workflows
Version 3.0.3
Workflows improvements
- Add a `password` struct to `UserAttributes` - Add a `Login` function to `API` for user authentication Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
feat: add user authentication functionality to API
Revert "feat: add user authentication functionality to API"
Version 3.1.0
Version 3.2.0
Version 3.2.1
Version 3.2.2
@@ -121,11 +121,11 @@ func (api *API) GetUser(userName string, withAttributes bool) (*User, error) { | |||
// Login attempts to authenticate a user with the given username and password. | |||
// It constructs a URL with the given username and sends a POST request to the usermanagement authentication API with the provided password. | |||
// It returns a pointer to a User object with the user's information on successful authentication, or an error if authentication failed or an unknown error occurred. | |||
func (api *API) Login(userName, password string) (*User, error) { | |||
func (api *API) Login(userName, passWord string) (*User, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change is unrelated to the issue, please do not change the naming of function arguments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, but the argument password
is same with type password struct
, and it should be same form with userName
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, thanks.
Hi! Thank you for your contribution. Please take a look at the review comments. |
As crowd api shows, the request body should be
instead of