Merge pull request #19 from rhoerbe/patch-1

correct issue #14: fix NCName with non-numeric character prefix
This commit is contained in:
Steffo Weber 2018-02-12 15:53:25 +01:00 committed by GitHub
commit ea1a90e6c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -52,7 +52,7 @@ SAML.prototype.initialize = function(options) {
SAML.prototype.generateUniqueID = function() {
const chars = 'abcdef0123456789';
let uniqueID = '';
let uniqueID = 'id-';
for (let i = 0; i < 20; i++) {
uniqueID += chars.substr(Math.floor((Math.random() * 15)), 1);
}