linting
This commit is contained in:
		
							parent
							
								
									b5b391c73b
								
							
						
					
					
						commit
						e223e826a3
					
				
					 1 changed files with 4 additions and 2 deletions
				
			
		|  | @ -265,7 +265,8 @@ exports.entryPage = "dashboard"; | |||
|                 } | ||||
| 
 | ||||
|                 if (data.token) { | ||||
|                     let verify = notp.totp.verify(data.token, user.twofa_secret, {"window": 1, "time": 30}); | ||||
|                     let verify = notp.totp.verify(data.token, user.twofa_secret, { "window": 1, | ||||
|                         "time": 30 }); | ||||
| 
 | ||||
|                     if (verify && verify.delta == 0) { | ||||
|                         callback({ | ||||
|  | @ -383,7 +384,8 @@ exports.entryPage = "dashboard"; | |||
|                 socket.userID, | ||||
|             ]); | ||||
| 
 | ||||
|             let verify = notp.totp.verify(token, user.twofa_secret, {"window": 1, "time": 30}); | ||||
|             let verify = notp.totp.verify(token, user.twofa_secret, { "window": 1, | ||||
|                 "time": 30 }); | ||||
| 
 | ||||
|             if (verify && verify.delta == 0) { | ||||
|                 callback({ | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue