Bugzilla – Attachment 38855 Details for
Bug 13664
Add password strength plugin
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Add jquery-complexify library
Add-jquery-complexify-library.patch (text/plain), 7.69 KB, created by
David Roberts
on 2015-05-05 15:57:03 UTC
(
hide
)
Description:
Add jquery-complexify library
Filename:
MIME Type:
Creator:
David Roberts
Created:
2015-05-05 15:57:03 UTC
Size:
7.69 KB
patch
obsolete
>From 80d03b13e6c89cd33a9db4ab4136233a365c5f14 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Thu, 22 Jan 2015 12:03:13 +0000 >Subject: [PATCH] Add jquery-complexify library > >http://bugs.koha-community.org/show_bug.cgi?id=13664 >--- > koha-tmpl/opac-tmpl/bootstrap/en/includes/complexify.inc | 2 ++ > koha-tmpl/opac-tmpl/lib/jquery/plugins/jquery.complexify.banlist.js | 3 +++ > koha-tmpl/opac-tmpl/lib/jquery/plugins/jquery.complexify.min.js | 1 + > 3 files changed, 6 insertions(+) > create mode 100644 koha-tmpl/opac-tmpl/bootstrap/en/includes/complexify.inc > create mode 100644 koha-tmpl/opac-tmpl/lib/jquery/plugins/jquery.complexify.banlist.js > create mode 100644 koha-tmpl/opac-tmpl/lib/jquery/plugins/jquery.complexify.min.js > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/complexify.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/complexify.inc >new file mode 100644 >index 0000000..ae7c1bb >--- /dev/null >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/complexify.inc >@@ -0,0 +1,2 @@ >+<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.complexify.banlist.js"></script> >+<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.complexify.min.js"></script> >diff --git a/koha-tmpl/opac-tmpl/lib/jquery/plugins/jquery.complexify.banlist.js b/koha-tmpl/opac-tmpl/lib/jquery/plugins/jquery.complexify.banlist.js >new file mode 100644 >index 0000000..8e9e8ca >--- /dev/null >+++ b/koha-tmpl/opac-tmpl/lib/jquery/plugins/jquery.complexify.banlist.js >@@ -0,0 +1,3 @@ >+// Generated from 500 worst passwords and 370 Banned Twitter lists found at >+// @source http://www.skullsecurity.org/wiki/index.php/Passwords >+COMPLEXIFY_BANLIST = '123456|password|12345678|1234|pussy|12345|dragon|qwerty|696969|mustang|letmein|baseball|master|michael|football|shadow|monkey|abc123|pass|fuckme|6969|jordan|harley|ranger|iwantu|jennifer|hunter|fuck|2000|test|batman|trustno1|thomas|tigger|robert|access|love|buster|1234567|soccer|hockey|killer|george|sexy|andrew|charlie|superman|asshole|fuckyou|dallas|jessica|panties|pepper|1111|austin|william|daniel|golfer|summer|heather|hammer|yankees|joshua|maggie|biteme|enter|ashley|thunder|cowboy|silver|richard|fucker|orange|merlin|michelle|corvette|bigdog|cheese|matthew|121212|patrick|martin|freedom|ginger|blowjob|nicole|sparky|yellow|camaro|secret|dick|falcon|taylor|111111|131313|123123|bitch|hello|scooter|please|porsche|guitar|chelsea|black|diamond|nascar|jackson|cameron|654321|computer|amanda|wizard|xxxxxxxx|money|phoenix|mickey|bailey|knight|iceman|tigers|purple|andrea|horny|dakota|aaaaaa|player|sunshine|morgan|starwars|boomer|cowboys|edward|charles|girls|booboo|coffee|xxxxxx|bulldog|ncc1701|rabbit|peanut|john|johnny|gandalf|spanky|winter|brandy|compaq|carlos|tennis|james|mike|brandon|fender|anthony|blowme|ferrari|cookie|chicken|maverick|chicago|joseph|diablo|sexsex|hardcore|666666|willie|welcome|chris|panther|yamaha|justin|banana|driver|marine|angels|fishing|david|maddog|hooters|wilson|butthead|dennis|fucking|captain|bigdick|chester|smokey|xavier|steven|viking|snoopy|blue|eagles|winner|samantha|house|miller|flower|jack|firebird|butter|united|turtle|steelers|tiffany|zxcvbn|tomcat|golf|bond007|bear|tiger|doctor|gateway|gators|angel|junior|thx1138|porno|badboy|debbie|spider|melissa|booger|1212|flyers|fish|porn|matrix|teens|scooby|jason|walter|cumshot|boston|braves|yankee|lover|barney|victor|tucker|princess|mercedes|5150|doggie|zzzzzz|gunner|horney|bubba|2112|fred|johnson|xxxxx|tits|member|boobs|donald|bigdaddy|bronco|penis|voyager|rangers|birdie|trouble|white|topgun|bigtits|bitches|green|super|qazwsx|magic|lakers|rachel|slayer|scott|2222|asdf|video|london|7777|marlboro|srinivas|internet|action|carter|jasper|monster|teresa|jeremy|11111111|bill|crystal|peter|pussies|cock|beer|rocket|theman|oliver|prince|beach|amateur|7777777|muffin|redsox|star|testing|shannon|murphy|frank|hannah|dave|eagle1|11111|mother|nathan|raiders|steve|forever|angela|viper|ou812|jake|lovers|suckit|gregory|buddy|whatever|young|nicholas|lucky|helpme|jackie|monica|midnight|college|baby|cunt|brian|mark|startrek|sierra|leather|232323|4444|beavis|bigcock|happy|sophie|ladies|naughty|giants|booty|blonde|fucked|golden|0|fire|sandra|pookie|packers|einstein|dolphins|chevy|winston|warrior|sammy|slut|8675309|zxcvbnm|nipples|power|victoria|asdfgh|vagina|toyota|travis|hotdog|paris|rock|xxxx|extreme|redskins|erotic|dirty|ford|freddy|arsenal|access14|wolf|nipple|iloveyou|alex|florida|eric|legend|movie|success|rosebud|jaguar|great|cool|cooper|1313|scorpio|mountain|madison|987654|brazil|lauren|japan|naked|squirt|stars|apple|alexis|aaaa|bonnie|peaches|jasmine|kevin|matt|qwertyui|danielle|beaver|4321|4128|runner|swimming|dolphin|gordon|casper|stupid|shit|saturn|gemini|apples|august|3333|canada|blazer|cumming|hunting|kitty|rainbow|112233|arthur|cream|calvin|shaved|surfer|samson|kelly|paul|mine|king|racing|5555|eagle|hentai|newyork|little|redwings|smith|sticky|cocacola|animal|broncos|private|skippy|marvin|blondes|enjoy|girl|apollo|parker|qwert|time|sydney|women|voodoo|magnum|juice|abgrtyu|777777|dreams|maxwell|music|rush2112|russia|scorpion|rebecca|tester|mistress|phantom|billy|6666|albert|111111|11111111|112233|121212|123123|123456|1234567|12345678|131313|232323|654321|666666|696969|777777|7777777|8675309|987654|abcdef|password1|password12|password123|twitter'.split('|'); >\ No newline at end of file >diff --git a/koha-tmpl/opac-tmpl/lib/jquery/plugins/jquery.complexify.min.js b/koha-tmpl/opac-tmpl/lib/jquery/plugins/jquery.complexify.min.js >new file mode 100644 >index 0000000..cf18841 >--- /dev/null >+++ b/koha-tmpl/opac-tmpl/lib/jquery/plugins/jquery.complexify.min.js >@@ -0,0 +1 @@ >+!function(a){a.fn.extend({complexify:function(b,c){function h(a,b){for(var c=a.length-1;c>=0;c--)if(b[0]<=a.charCodeAt(c)&&a.charCodeAt(c)<=b[1])return b[1]-b[0]+1;return 0}function i(c){if("strict"===b.banmode){for(var d=0;d<b.bannedPasswords.length;d++)if(-1!==b.bannedPasswords[d].indexOf(c))return!0;return!1}return a.inArray(c,b.bannedPasswords)>-1?!0:!1}function j(){var g=a(this).val(),j=0,k=!1;if(i(g))j=1;else for(var l=f.length-1;l>=0;l--)j+=h(g,f[l]);j=Math.log(Math.pow(j,g.length))*(1/b.strengthScaleFactor),k=j>d&&g.length>=b.minimumChars,j=100*(j/e),j=j>100?100:j,c.call(this,k,j)}var d=49,e=120,f=[[32,32],[48,57],[65,90],[97,122],[33,47],[58,64],[91,96],[123,126],[128,255],[256,383],[384,591],[592,687],[688,767],[768,879],[880,1023],[1024,1279],[1328,1423],[1424,1535],[1536,1791],[1792,1871],[1920,1983],[2304,2431],[2432,2559],[2560,2687],[2688,2815],[2816,2943],[2944,3071],[3072,3199],[3200,3327],[3328,3455],[3456,3583],[3584,3711],[3712,3839],[3840,4095],[4096,4255],[4256,4351],[4352,4607],[4608,4991],[5024,5119],[5120,5759],[5760,5791],[5792,5887],[6016,6143],[6144,6319],[7680,7935],[7936,8191],[8192,8303],[8304,8351],[8352,8399],[8400,8447],[8448,8527],[8528,8591],[8592,8703],[8704,8959],[8960,9215],[9216,9279],[9280,9311],[9312,9471],[9472,9599],[9600,9631],[9632,9727],[9728,9983],[9984,10175],[10240,10495],[11904,12031],[12032,12255],[12272,12287],[12288,12351],[12352,12447],[12448,12543],[12544,12591],[12592,12687],[12688,12703],[12704,12735],[12800,13055],[13056,13311],[13312,19893],[19968,40959],[40960,42127],[42128,42191],[44032,55203],[55296,56191],[56192,56319],[56320,57343],[57344,63743],[63744,64255],[64256,64335],[64336,65023],[65056,65071],[65072,65103],[65104,65135],[65136,65278],[65279,65279],[65280,65519],[65520,65533]],g={minimumChars:8,strengthScaleFactor:1,bannedPasswords:window.COMPLEXIFY_BANLIST||[],banmode:"strict",evaluateOnInit:!0};return a.isFunction(b)&&!c&&(c=b,b={}),b=a.extend(g,b),b.evaluateOnInit&&this.each(function(){j.apply(this)}),this.each(function(){a(this).bind("keyup focus input propertychange mouseup",j)})}})}(jQuery); >\ No newline at end of file >-- >1.7.10.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 13664
:
38855
|
38856
|
38857
|
38858
|
38859
|
38860
|
38861
|
38862
|
38863
|
38864
|
38865
|
38866
|
38867
|
38868
|
38869
|
39322
|
39323
|
39324
|
39325
|
39326
|
39327
|
39328
|
39329
|
39330
|
39331
|
39332
|
39333
|
39334
|
39335
|
39336
|
39337
|
39544
|
39547
|
39548
|
39549
|
39550
|
39551
|
39552
|
39553
|
39554
|
39555
|
39556
|
39557
|
39558
|
39559
|
39560
|
39561
|
39562
|
39594
|
39595
|
39596
|
39597
|
39598
|
39599
|
39600
|
39601
|
39602
|
39603
|
39604
|
39605
|
39606
|
39607
|
39608
|
39609