mirror of
				https://github.com/dani-garcia/vaultwarden.git
				synced 2025-11-04 12:18:20 +02:00 
			
		
		
		
	Remove md5.js dependency
				
					
				
			Switch to the built-in WebCrypto APIs for computing identicon hashes.
This commit is contained in:
		@@ -206,9 +206,11 @@
 | 
			
		||||
        "3": { "name": "Manager", "color": "green" },
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
    document.querySelectorAll("img.identicon").forEach(function (e, i) {
 | 
			
		||||
        e.src = identicon(e.dataset.src);
 | 
			
		||||
    });
 | 
			
		||||
    (async () => {
 | 
			
		||||
        for (let e of document.querySelectorAll("img.identicon")) {
 | 
			
		||||
            e.src = await identicon(e.dataset.src);
 | 
			
		||||
        }
 | 
			
		||||
    })();
 | 
			
		||||
 | 
			
		||||
    document.querySelectorAll("[data-orgtype]").forEach(function (e, i) {
 | 
			
		||||
        let orgtype = OrgTypes[e.dataset.orgtype];
 | 
			
		||||
@@ -288,4 +290,4 @@
 | 
			
		||||
            "Error updating organization type of the user", data);
 | 
			
		||||
        return false;
 | 
			
		||||
    }
 | 
			
		||||
</script>
 | 
			
		||||
</script>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user