Skip to content
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

Use constants for columns in events management #77

Merged
merged 1 commit into from Jun 6, 2019
Merged

Conversation

fperot74
Copy link
Contributor

@fperot74 fperot74 commented Jun 4, 2019

(build will fail until cloudtrust/common-service#15 is merged)

@@ -52,7 +52,7 @@ func (c *component) UpdatePassword(ctx context.Context, currentPassword, newPass
_, err := c.keycloakClient.UpdatePassword(accessToken, realm, currentPassword, newPassword, confirmPassword)

//store the API call into the DB
_ = c.reportEvent(ctx, "PASSWORD_RESET", "realm_name", realm, "user_id", userID, "username", username)
_ = c.reportEvent(ctx, "PASSWORD_RESET", database.CtEventRealmName, realm, database.CtEventUserID, userID, "username", username)
Copy link
Contributor

Choose a reason for hiding this comment

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

database.CtEventUsername for "username"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed 👍

@coveralls
Copy link

Pull Request Test Coverage Report for Build 737

  • 38 of 38 (100.0%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 93.725%

Totals Coverage Status
Change from base Build 730: 0.0%
Covered Lines: 2151
Relevant Lines: 2295

💛 - Coveralls

@fperot74 fperot74 merged commit 455ebf4 into master Jun 6, 2019
@fperot74 fperot74 deleted the events branch June 6, 2019 07:54
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.

None yet

4 participants