mirror of
				https://github.com/Ylianst/MeshCentral.git
				synced 2025-03-09 15:40:18 +00:00 
			
		
		
		
	Added autofido2fa option in PasswordRequirements, #2952
This commit is contained in:
		
							parent
							
								
									bbbe5e7d36
								
							
						
					
					
						commit
						15ddd3cd00
					
				
					 5 changed files with 30 additions and 5 deletions
				
			
		|  | @ -2863,6 +2863,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates) { | |||
|         if ((typeof domain.passwordrequirements == 'object') && (domain.passwordrequirements.sms2factor == false)) { otpsms = false; } | ||||
|         var otppush = (parent.firebase != null) && (req.session != null) && (req.session.tpush === 1); | ||||
|         if ((typeof domain.passwordrequirements == 'object') && (domain.passwordrequirements.push2factor == false)) { otppush = false; } | ||||
|         const autofido = ((typeof domain.passwordrequirements == 'object') && (domain.passwordrequirements.autofido2fa == true)); // See if FIDO should be automatically prompted if user account has it.
 | ||||
| 
 | ||||
|         // See if we support two-factor trusted cookies
 | ||||
|         var twoFactorCookieDays = 30; | ||||
|  | @ -2917,6 +2918,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates) { | |||
|                 otpemail: otpemail, | ||||
|                 otpsms: otpsms, | ||||
|                 otppush: otppush, | ||||
|                 autofido: autofido, | ||||
|                 twoFactorCookieDays: twoFactorCookieDays, | ||||
|                 authStrategies: authStrategies.join(','), | ||||
|                 loginpicture: (typeof domain.loginpicture == 'string'), | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue