Fix quoting problem
This commit is contained in:
+2
-2
@@ -794,8 +794,8 @@ angular.module('Application').controller('UsersController', ['$scope', '$locatio
|
||||
// https://stackoverflow.com/questions/1497481/javascript-password-generator
|
||||
function generatePassword() {
|
||||
var length = 12,
|
||||
charset = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",
|
||||
retVal = "";
|
||||
charset = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789',
|
||||
retVal = '';
|
||||
for (var i = 0, n = charset.length; i < length; ++i) {
|
||||
retVal += charset.charAt(Math.floor(Math.random() * n));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user