mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-25 17:44:32 +02:00 
			
		
		
		
	
							parent
							
								
									ade88a877d
								
							
						
					
					
						commit
						59f879bfec
					
				| @ -129,11 +129,7 @@ func aesDecrypt(key, text []byte) ([]byte, error) { | ||||
| 
 | ||||
| // NewTwoFactor creates a new two-factor authentication token. | ||||
| func NewTwoFactor(t *TwoFactor) error { | ||||
| 	_, err := t.GenerateScratchToken() | ||||
| 	if err != nil { | ||||
| 		return err | ||||
| 	} | ||||
| 	_, err = x.Insert(t) | ||||
| 	_, err := x.Insert(t) | ||||
| 	return err | ||||
| } | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user