mirror of
https://github.com/minio/minio.git
synced 2025-11-09 05:34:56 -05:00
More updates on documentation
This commit is contained in:
@@ -21,10 +21,14 @@ const (
|
||||
MINIO_SECRET_ID = 40
|
||||
)
|
||||
|
||||
/// helpers
|
||||
|
||||
// Is alphanumeric?
|
||||
func isalnum(c byte) bool {
|
||||
return '0' <= c && c <= '9' || 'A' <= c && c <= 'Z' || 'a' <= c && c <= 'z'
|
||||
}
|
||||
|
||||
// validate access key for only alphanumeric characters
|
||||
func ValidateAccessKey(key []byte) bool {
|
||||
for _, char := range key {
|
||||
if isalnum(char) {
|
||||
|
||||
Reference in New Issue
Block a user