Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

(fix password-validator) Simple Mistype #1156

Closed
wants to merge 1 commit into from
Closed

(fix password-validator) Simple Mistype #1156

wants to merge 1 commit into from

Conversation

Meistercoach83
Copy link
Contributor

No description provided.

@@ -11,7 +11,7 @@ angular.module('users').factory('PasswordValidator', ['$window',
return result;
},
getPopoverMsg: function () {
var popoverMsg = 'Please enter a passphrase or password with greater than 10 characters, numbers, lowercase, upppercase, and special characters.';
var popoverMsg = 'Please enter a passphrase or password with more than 10 characters, numbers, lowercase, uppercase, and special characters.';
Copy link
Member

Choose a reason for hiding this comment

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

@lirantal @codydaig Why do this when result tells us the errors? I think the popoverMsg should be result.requiredTestErrors if possible.

https://www.npmjs.com/package/owasp-password-strength-test#in-browser-1

Copy link
Member

Choose a reason for hiding this comment

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

@ilanbiala I think the point is to give the User a heads up on what the requirements are for the password. Rather than displaying the message on the page, I think this is a good way to convey this info to the User.

This doesn't have anything to do with the errors. The error result is handled through ng-messages, and displays on the page just like other form validation errors we have.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for catching this @Meistercoach83! @mleanos is right, the popover was intended to give the user instructions for the password requirements when they click into the form field.

@ilanbiala ilanbiala added this to the 0.5.0 milestone Jan 23, 2016
@ilanbiala ilanbiala self-assigned this Jan 23, 2016
@ilanbiala
Copy link
Member

Fix the commit message, and I'll merge it in.

@Meistercoach83 Meistercoach83 changed the title Simple Mistype (fix password-validator) Simple Mistype Jan 25, 2016
@ilanbiala
Copy link
Member

@Meistercoach83 the actual commit message needs to be changed, not the title of the PR. See https://github.com/meanjs/mean/blob/master/CONTRIBUTING.md for what it should look like.

@codydaig
Copy link
Member

codydaig commented Feb 6, 2016

@Meistercoach83 Can you change the commit message?

rhutchison added a commit to Gym/mean that referenced this pull request Feb 11, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants