Fix issues with account swutching

This commit is contained in:
Mukhtar Akere
2025-08-26 15:31:24 +01:00
parent eefe8a3901
commit 267cc2d32b
13 changed files with 149 additions and 115 deletions

View File

@@ -22,3 +22,15 @@ func Contains(slice []string, value string) bool {
}
return false
}
func Mask(text string) string {
res := ""
if len(text) > 12 {
res = text[:8] + "****" + text[len(text)-4:]
} else if len(text) > 8 {
res = text[:4] + "****" + text[len(text)-2:]
} else {
res = "****"
}
return res
}