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

Tpv2/password reset #6435

Merged
merged 6 commits into from
Jan 10, 2022
Merged

Tpv2/password reset #6435

merged 6 commits into from
Jan 10, 2022

Conversation

ocket8888
Copy link
Contributor

Adds a "Reset Password" button to TPv2, and fixes some slow compilation caused by #6391.


Which Traffic Control components are affected by this PR?

  • Traffic Portal (experimental v2)

What is the best way to verify this PR?

Make sure the TPv2 tests all still pass

The way I tested this was to make sure the button called the right API endpoint, and then going to /login?token={{My user's token in the database}} since this doesn't change the behavior of that endpoint there's no point I can see to going to the trouble of getting it to actually send an email.

PR submission checklist

  • This PR has tests
  • This PR has documentation
  • This PR has a CHANGELOG.md entry
  • This PR DOES NOT FIX A SERIOUS SECURITY VULNERABILITY

@ocket8888 ocket8888 added new feature A new feature, capability or behavior experimental a feature/component not directly supported by ATC low impact affects only a small portion of a CDN, and cannot itself break one labels Dec 17, 2021
@shamrickus shamrickus self-assigned this Jan 5, 2022
Copy link
Member

@shamrickus shamrickus left a comment

Choose a reason for hiding this comment

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

Checks are failing, potentially related to the two failing tests I'm getting:

LoginComponent > should exist
NullInjectorError: R3InjectorError(DynamicTestModule)[MatDialog -> MatDialog]: 
  NullInjectorError: No provider for MatDialog!
ResetPasswordDialogComponent > should create
NullInjectorError: R3InjectorError(DynamicTestModule)[UserService -> UserService]: 
  NullInjectorError: No provider for UserService!

@ocket8888 ocket8888 force-pushed the tpv2/password-reset branch from 00447dd to 4ac965a Compare January 9, 2022 19:36
Copy link
Member

@shamrickus shamrickus left a comment

Choose a reason for hiding this comment

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

LGTM

@shamrickus shamrickus merged commit 80a4d0e into apache:master Jan 10, 2022
@ocket8888 ocket8888 deleted the tpv2/password-reset branch January 10, 2022 20:06
@zrhoffman zrhoffman added the authentication Relating to login, registration, passwords, tokens, etc. label Jan 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
authentication Relating to login, registration, passwords, tokens, etc. experimental a feature/component not directly supported by ATC low impact affects only a small portion of a CDN, and cannot itself break one new feature A new feature, capability or behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants