Skip to content

Commit

Permalink
Basic support for Foundation
Browse files Browse the repository at this point in the history
- First release to support Zurb Foundation, forked from ablanco/jquery.pwstrength.bootstrap v 1.2.2
- The lack of a built in orange warning state for progress bars is posing a problem, we might have to add it
- Basic support for progress bar, though text in progress bar requires extra styling
- Verdicts outputted to Foundation .postfix, if existing
- Errors outputted to Foundation Error states
- Popover not currently supported
  • Loading branch information
Edward Townend committed Oct 13, 2014
1 parent b927312 commit cb3aac0
Show file tree
Hide file tree
Showing 68 changed files with 447 additions and 7,614 deletions.
1 change: 1 addition & 0 deletions AUTHORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ Peter Goes <https://github.com/petergoes>
Brent <https://github.com/bergerbs>
mikemey <https://github.com/mikemey>
saparicio <https://github.com/saparicio>
Ed Townend <https://github.com/edtownend>
129 changes: 8 additions & 121 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,123 +1,10 @@
# CHANGELOG

## 1.2.2

- Every rule can have associated error messages.

## 1.2.1

- Improve documentation.
- Fix typo in alphabetical sequence.
- Use the not minified version of the library in bower as main file.

## 1.2.0

- Listen also to the `change` and `onpaste` events, not only to the `onkeyup`.
- Show the lowest verdict when the score is below zero.
- New option to pass more input fields content to the zxcvbn library.
- Don't show the verdicts inside the popover if they are being showed inside
the progressbar.

## 1.1.5

- Better Bower configuration.
- Pass also the verdict level to the "on key up" event handler.
- Add a basic usage section to the readme.

## 1.1.4

- Bower support.

## 1.1.3

- Pass the score and the verdict to the "on key up" event handler.

## 1.1.2

- Upgrade dev dependencies: grunt plugins and jquery
- Bugfix in sequences lookup
- New tests for sequences lookup

## 1.1.1

- Pass the username field content to the zxcvbn function, so zxcvbn takes it
into consideration when scoring the password.
- Add a debug option, so the score gets printed in the JS console.
- Check reversed sequences too in the sequences rule.
- Fix the popover flickering.

## 1.1.0

- Support zxcvbn for password scoring.
- Support showing the password strength as a validation status in the password
field.
- Support hiding the progress bar, making it optional.
- Support showing the verdicts inside the progress bar.

## 1.0.2

- Bugfix in UI initialization.
- Fix typo in readme.

## 1.0.1

- Separate source file in several smaller files.
- Add Grunt support for creating a bundle and a minified version.
- Add tests for the rules engine, and continuos integration with Travis.

## 1.0.0

- Complete refactor of the code. This is a cleaner version, easier to extend
and mantain.
- Broke backwards compatibility. Bootstrap 3 is the default option now, other
options default values have changed. Options structure has changed too.
- Old tests have been renamed to examples, which is what they really are. Leave
room for real tests.

## 0.7.0

- New rule to check for sequences in the password. It penalizes finding
sequences of consecutive numbers, consecutive characters in the alphabet or
in the qwerty layout. Active by default.

## 0.6.0

- New feature: support showing the verdicts and errors in a Bootstrap popover.
- Hide the verdicts and errors when the input is empty.
- Remove _showVerdictsInitially_ option, is not needed anymore.

## 0.5.0

- Support to activate/deactivate rules using the _rules_ object inside the
_options_ object.
- Two new rules added, deactivated by default. Check for too many character
repetitions, and check for number of character classes used.

## 0.4.5

- Fix error message when the password contains the username.
- Check if the password is an email, and mark as weak.
- Add a _container_ option, it will be used to look for the viewports.

## 0.4.4

- Bad version in plugin manifest.

## 0.4.3

- Change jQuery plugin name to avoid conflict with an existing one.

## 0.4.2

- New option to choose if the verdicts should be displayed before the user
introduces a letter. New default behaviour: don't show them.
- Bugfix with progress bar color and Bootstrap 2.
- Improve code quality.

## 0.4.1

- jQuery plugins registry support.

## 0.4.0

- Bootstrap 3.0.0 support.
## 1.2.3

- First release to support Zurb Foundation, forked from ablanco/jquery.pwstrength.bootstrap v 1.2.2
- The lack of a built in orange warning state for progress bars is posing a problem, we might have to add it
- Basic support for progress bar, though text in progress bar requires extra styling
- Verdicts outputted to Foundation .postfix, if existing
- Errors outputted to Foundation Error states
- Popover not currently supported
3 changes: 2 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ module.exports = function (grunt) {

var license =
'/*!\n' +
'* jQuery Password Strength plugin for Twitter Bootstrap\n' +
'* jQuery Password Strength plugin for Zurb Foundation\n' +
'*\n' +
'* Copyright (c) 2008-2013 Tane Piper\n' +
'* Copyright (c) 2013 Alejandro Blanco\n' +
'* Copyright (c) 2014 Ed Townend\n' +
'* Dual licensed under the MIT and GPL licenses.\n' +
'*/\n\n' +
'(function (jQuery) {\n';
Expand Down
44 changes: 21 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# jQuery Password Strength Meter for Twitter Bootstrap
# jQuery Password Strength Meter for Zurb Foundation 5

[![Build Status](https://travis-ci.org/ablanco/jquery.pwstrength.bootstrap.png?branch=master)](https://travis-ci.org/ablanco/jquery.pwstrength.bootstrap)
[![Code Climate](https://codeclimate.com/github/ablanco/jquery.pwstrength.bootstrap.png)](https://codeclimate.com/github/ablanco/jquery.pwstrength.bootstrap)
[![devDependency Status](https://david-dm.org/ablanco/jquery.pwstrength.bootstrap/dev-status.png)](https://david-dm.org/ablanco/jquery.pwstrength.bootstrap#info=devDependencies)
[![Build Status](https://travis-ci.org/edtownend/jquery.pwstrength.foundation.png?branch=master)](https://travis-ci.org/edtownend/jquery.pwstrength.foundation)
[![Code Climate](https://codeclimate.com/github/edtownend/jquery.pwstrength.foundation.png)](https://codeclimate.com/github/edtownend/jquery.pwstrength.foundation)
[![devDependency Status](https://david-dm.org/edtownend/jquery.pwstrength.foundation/dev-status.png)](https://david-dm.org/edtownend/jquery.pwstrength.foundation#info=devDependencies)

The jQuery Password Strength Meter is a plugin for Twitter Bootstrap that
The jQuery Password Strength Meter is a plugin for Zurb Foundation 5 that
provides rulesets for visualy displaying the quality of a users typed in
password.
password. Forked from ablanco/jquery.pwstrength.bootstrap - all I've done is change the outputted syntax

Dual licensed under the MIT and GPL licenses.

Expand All @@ -16,7 +16,7 @@ Dual licensed under the MIT and GPL licenses.
## Requirements

* jQuery 1.7 or higher
* Bootstrap 2 or 3
* Foundation 5


## How to use it
Expand Down Expand Up @@ -189,13 +189,6 @@ Let's see the options of each section.

### User Interface

* __bootstrap2__:

Default: `false` (Boolean)

Sets if it supports legacy Bootstrap 2 (true) or the current Bootstrap 3
(false), the progress bar html is different.

* __showProgressBar__:

Default: `true` (Boolean)
Expand All @@ -217,8 +210,9 @@ Let's see the options of each section.

Default: `false` (Boolean)

Displays the password strength as a validation status in the password field,
for this to work, the Bootstrap form structure must be followed.
Add a status class (alert, warning, success...) to the selector specified in
ui.viewports.status or the container of the form field. Useful for Foundation
labels.

* __spanError__:

Expand Down Expand Up @@ -264,7 +258,8 @@ Let's see the options of each section.

Default: `true` (Boolean)

Determines if the verdicts are displayed or not.
Determines if the verdicts are displayed or not. By default these are shown in
a postfix element, so be sure to layout your markup with a posfix label.

* __showVerdictsInsideProgressBar__:

Expand All @@ -273,13 +268,15 @@ Let's see the options of each section.
Determines if the verdicts are displayed inside the progress bar or not. When
this setting is active, the verdict viewport is ignored and they won't appear
on the popover if it is being showed. Also this option overrides the value of
the _showVerdicts_ one.
the _showVerdicts_ one. Until Foundation supports text inside progress bars,
you're going to have to set the line height yourself to tidy this up.

* __showErrors__:

Default: `false` (Boolean)
Default: `true` (Boolean)

Determines if the error list is displayed with the progress bar or not.
Determines if the error list is displayed or not. Shown in the format of
a Foundation error state.

* __container__:

Expand All @@ -296,8 +293,9 @@ Let's see the options of each section.
```
{
progress: undefined,
verdict: undefined,
errors: undefined
verdict: '.postfix',
errors: undefined,
status: undefined
}
```

Expand Down Expand Up @@ -497,5 +495,5 @@ It will check all the source files with [JSLint](http://jslint.com) and run the
tests, which are written with [Jasmine](http://jasmine.github.io/). You'll find
the tests source code in the `spec` directory.

[Travis](https://travis-ci.org/ablanco/jquery.pwstrength.bootstrap) is being
[Travis](https://travis-ci.org/edtownend/jquery.pwstrength.foundation) is being
used for continuos integration. You can check there if the tests are passing.
18 changes: 9 additions & 9 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
{
"name": "pwstrength-bootstrap",
"version": "1.2.2",
"homepage": "https://github.com/ablanco/jquery.pwstrength.bootstrap",
"name": "pwstrength-foundation",
"version": "1.2.3",
"homepage": "https://github.com/edtownend/jquery.pwstrength.foundation",
"authors": [
"Alejandro Blanco <alejandro.b.e@gmail.com>"
"Ed Townend <eddie@teamtownend.com>"
],
"description": "jQuery plugin for Twitter Bootstrap that provides rulesets for visualy displaying the quality of a users typed in password.",
"main": "dist/pwstrength-bootstrap-1.2.2.js",
"description": "jQuery plugin for Zurb Foundation 5 that provides rulesets for visualy displaying the quality of a users typed in password.",
"main": "dist/pwstrength-foundation-1.2.2.js",
"dependencies": {
"jquery": ">=1.7.0",
"bootstrap": ">=2.0.0"
"foundation": ">=2.0.0"
},
"moduleType": [
"globals"
],
"keywords": [
"jquery",
"bootstrap",
"foundation",
"password",
"strength",
"meter"
Expand All @@ -32,6 +32,6 @@
"CHANGES.md",
"Gruntfile.js",
"package.json",
"pwstrength-bootstrap.jquery.json"
"pwstrength-foundation.jquery.json"
]
}
Loading

0 comments on commit cb3aac0

Please sign in to comment.