|
|
@ -52,6 +52,7 @@ func printLoginScreen(redisClient *redis.Client) { |
|
|
|
typedHash := sha3.Sum512([]byte(typedAuth)) |
|
|
|
typedHash := sha3.Sum512([]byte(typedAuth)) |
|
|
|
if fmt.Sprintf("%x", typedHash) == storedHash { |
|
|
|
if fmt.Sprintf("%x", typedHash) == storedHash { |
|
|
|
// user authed
|
|
|
|
// user authed
|
|
|
|
|
|
|
|
createUserFiles(username) |
|
|
|
printUserScreen(redisClient, username) |
|
|
|
printUserScreen(redisClient, username) |
|
|
|
noPass = false |
|
|
|
noPass = false |
|
|
|
} else { |
|
|
|
} else { |
|
|
|