diff --git a/app/assets/javascripts/password.js b/app/assets/javascripts/password.js index 45dc088..f7314a0 100644 --- a/app/assets/javascripts/password.js +++ b/app/assets/javascripts/password.js @@ -54,27 +54,27 @@ $(document).on('turbolinks:load', function() { return password.length >= 10 } - window.checkTop100 = function(password) { - if (!window.top100) { - getTop100().then(function() { - return !window.top100.includes(password) - }) - } else { - return !window.top100.includes(password) - } - - } - - function getTop100() { - return $.ajax({ - url: 'https://raw.githubusercontent.com/danielmiessler/SecLists/master/Passwords/10_million_password_list_top_100.txt' - }).then(function(data) { - window.top100 = data - }) - } - window.ensureDoesntMatchEmail = function(password) { return $('#registration_email').val() != password } + + // window.checkTop100 = function(password) { + // if (!window.top100) { + // getTop100().then(function() { + // return !window.top100.includes(password) + // }) + // } else { + // return !window.top100.includes(password) + // } + // + // } + + // function getTop100() { + // return $.ajax({ + // url: 'https://raw.githubusercontent.com/danielmiessler/SecLists/master/Passwords/10_million_password_list_top_100.txt' + // }).then(function(data) { + // window.top100 = data + // }) + // } } }) diff --git a/app/views/passwords/edit.html.erb b/app/views/passwords/edit.html.erb index f4c901d..aee5768 100644 --- a/app/views/passwords/edit.html.erb +++ b/app/views/passwords/edit.html.erb @@ -14,7 +14,7 @@
We know password rules are annoying, but there are some easy ways to ensure your account remains secure. For more info on why we use these password constraints, check out <%= link_to 'Password Rules Are Bullshit', 'https://blog.codinghorror.com/password-rules-are-bullshit/', target: '_blank' %> on the Coding Horror blog.