mirror of
				https://github.com/Ylianst/MeshCentral.git
				synced 2025-03-09 15:40:18 +00:00 
			
		
		
		
	Fix for UTF8 in OTP QR code, #3745
This commit is contained in:
		
							parent
							
								
									b57ed96c48
								
							
						
					
					
						commit
						7dd6fa0c6b
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -3208,7 +3208,7 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use | |||
| 
 | ||||
|                         var domainName = parent.certificates.CommonName; | ||||
|                         if (domain.dns != null) { domainName = domain.dns; } | ||||
|                         ws.send(JSON.stringify({ action: 'otpauth-request', secret: secret, url: otplib.authenticator.keyuri(user.name, domainName, secret) })); | ||||
|                         ws.send(JSON.stringify({ action: 'otpauth-request', secret: secret, url: otplib.authenticator.keyuri(encodeURIComponent(user.name), domainName, secret) })); | ||||
|                     } | ||||
|                     break; | ||||
|                 } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue