Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

PLT-8089: Hides "Password updated successfully" flash after login attempt. #285

Merged
merged 1 commit into from
Nov 20, 2017

Conversation

mkraft
Copy link
Contributor

@mkraft mkraft commented Nov 12, 2017

Summary

Removes the extra=password_change query parameter upon submitting a login form so that the "Password updated successfully" flash message disappears in cases where the route does not redirect.

Ticket Link

[Please link the GitHub issue or Jira ticket this PR addresses.]
Jira PLT-8089

Checklist

  • Ran make check-style to check for style errors (required for all pull requests)

@mkraft mkraft added the 1: PM Review Requires review by a product manager label Nov 12, 2017
@mkraft mkraft changed the title PLT-8089: Removes 'extra=change_password' from query submission of lo… PLT-8089: Hides "Password updated successfully" flash after login attempt. Nov 12, 2017
@mkraft mkraft changed the base branch from master to release-4.4 November 12, 2017 16:48
@jasonblais jasonblais added the Setup Old Test Server Triggers the creation of a test server label Nov 13, 2017
@mattermod
Copy link
Contributor

Spinmint test server created at: https://i-003bc0bcd2cd01598.spinmint.com

Test Account 1: Email: [email protected] | Password: passwd

Test Account 2: Email: [email protected] | Password: passwd

Instance ID: i-003bc0bcd2cd01598

@mkraft mkraft changed the base branch from release-4.4 to master November 13, 2017 14:33
Copy link
Contributor

@esethna esethna left a comment

Choose a reason for hiding this comment

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

Sweet, thanks!

@mattermod
Copy link
Contributor

Spinmint test server destroyed

@esethna esethna added 2: Dev Review Requires review by a core commiter and removed 1: PM Review Requires review by a product manager Setup Old Test Server Triggers the creation of a test server labels Nov 15, 2017
@esethna esethna removed their assignment Nov 15, 2017
@esethna esethna added this to the v4.5.0 milestone Nov 15, 2017
Copy link
Member

@hmhealey hmhealey left a comment

Choose a reason for hiding this comment

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

Also, you appear to have caught a couple unrelated commits with yours

const {location} = this.props;
const newQuery = location.search.replace(/(extra=password_change)&?/i, '');
if (newQuery !== location.search) {
browserHistory.replace(`${location.pathname}${newQuery}${location.hash}`);
Copy link
Member

Choose a reason for hiding this comment

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

This doesn't cause any problems if removing the extra parameter would cause the link to end in ? or ?something=else& would it?

Copy link
Contributor Author

@mkraft mkraft Nov 16, 2017

Choose a reason for hiding this comment

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

@hmhealey Good eye. I didn't bother removing the trailing ? or & when I was writing it because I'm not aware of those characters trailing a path or query (respectively) causing any issues. If you're aware of any reason we should be concerned let me know and I can make a change.

Copy link
Member

Choose a reason for hiding this comment

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

There's nothing I'm aware of, so this should be fine then

@hmhealey hmhealey self-assigned this Nov 16, 2017
@mkraft
Copy link
Contributor Author

mkraft commented Nov 16, 2017

@jasonblais @hmhealey I have rebased onto master to get ride of those extra commits.

Anything you want a PM to test, or is it good for dev review?

@jasonblais I think we're probably good to just do dev review.

@mattermost mattermost deleted a comment from mattermod Nov 16, 2017
@crspeller crspeller merged commit 9d1086b into master Nov 20, 2017
@crspeller crspeller deleted the PLT-8089 branch November 20, 2017 19:17
@lindalumitchell lindalumitchell added the Tests/Not Needed Does not require new release tests label Nov 20, 2017
@esethna esethna added Changelog/Done Required changelog entry has been written Docs/Not Needed Does not require documentation labels Dec 4, 2017
hmhealey pushed a commit that referenced this pull request Aug 28, 2020
hmhealey pushed a commit that referenced this pull request Mar 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
2: Dev Review Requires review by a core commiter Changelog/Done Required changelog entry has been written Docs/Not Needed Does not require documentation Tests/Not Needed Does not require new release tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants