mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-26 04:17:08 +00:00 
			
		
		
		
	Implements generator cli for secrets (#3531)
Signed-off-by: Codruț Constantin Gușoi <codrut.gusoi@gmail.com>
This commit is contained in:
		 Codruț Constantin Gușoi
					Codruț Constantin Gușoi
				
			
				
					committed by
					
						 Lauris BH
						Lauris BH
					
				
			
			
				
	
			
			
			 Lauris BH
						Lauris BH
					
				
			
						parent
						
							e59fe7c8d9
						
					
				
				
					commit
					96c268c0fc
				
			| @@ -107,12 +107,6 @@ func TestBasicAuthEncode(t *testing.T) { | ||||
| 	assert.Equal(t, "Zm9vOmJhcg==", BasicAuthEncode("foo", "bar")) | ||||
| } | ||||
|  | ||||
| func TestGetRandomString(t *testing.T) { | ||||
| 	randomString, err := GetRandomString(4) | ||||
| 	assert.NoError(t, err) | ||||
| 	assert.Len(t, randomString, 4) | ||||
| } | ||||
|  | ||||
| // TODO: Test PBKDF2() | ||||
| // TODO: Test VerifyTimeLimitCode() | ||||
| // TODO: Test CreateTimeLimitCode() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user