]> _ Git - fluidbook-html5.git/commitdiff
wip #6059
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 22 Jun 2023 13:36:19 +0000 (15:36 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 22 Jun 2023 13:36:19 +0000 (15:36 +0200)
js/libs/fluidbook/fluidbook.secure.js

index c12da85d9fe5fb1ec5fa328d78265b5eb305dab1..8980c17d58ca2e972e9e5a28fc92cd8fe22c1d09 100644 (file)
@@ -69,7 +69,7 @@ FluidbookSecure.prototype = {
     },
 
     checkSecure: function (callback) {
-        var $this=this;
+        var $this = this;
         // Hybrid protection
         if (this.fluidbook.settings.secureURL !== 'http://' && this.fluidbook.settings.secureURL !== '' && this.fluidbook.settings.secureClientSidePassword !== '') {
 
@@ -127,7 +127,7 @@ FluidbookSecure.prototype = {
 
     checkSecureByClientSidePassword: function (callback) {
 
-        var u = window.sessionStorage.getItem('secureUsername');
+        var u = window.sessionStorage.getItem('secureUsername').toLowerCase();
         var p = window.sessionStorage.getItem('securePassword');
         var ok = false;
         if (u !== null && p !== null) {