diff options
author | Git <git@what.cd> | 2013-07-23 08:00:41 +0000 |
---|---|---|
committer | Git <git@what.cd> | 2013-07-23 08:00:41 +0000 |
commit | d4724365ea01f2053ffddb14b9ba8e2b9456d1b5 (patch) | |
tree | 862e62cb1f52eb57b8404216aee8ae12b029f5cb /static/functions/user.js | |
parent | d9b66d41add47d165587592e12a70acc1fe4ff90 (diff) | |
download | Gazelle-d4724365ea01f2053ffddb14b9ba8e2b9456d1b5.zip Gazelle-d4724365ea01f2053ffddb14b9ba8e2b9456d1b5.tar.gz Gazelle-d4724365ea01f2053ffddb14b9ba8e2b9456d1b5.tar.bz2 |
Empty commit
Diffstat (limited to 'static/functions/user.js')
-rw-r--r-- | static/functions/user.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/static/functions/user.js b/static/functions/user.js index b7e23dd..5542fef 100644 --- a/static/functions/user.js +++ b/static/functions/user.js @@ -217,3 +217,15 @@ function displayCommStats(stats) { } } } + +$(document).ready(function() { + $("#random_password").click(function() { + var length = 15, + charset = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()_+-=<>?", + password = ""; + for (var i = 0, n = charset.length; i < length; ++i) { + password += charset.charAt(Math.floor(Math.random() * n)); + } + $('#change_password').val(password); + }); +}); |