feat: support ban and kick
This commit is contained in:
@@ -28,9 +28,9 @@ func GetAuthcator() Auth {
|
||||
}
|
||||
|
||||
func (a *Authcator) IsAuthed(u models.User, expireMode bool) bool {
|
||||
if u.MCName != "VaalaCat" {
|
||||
return true
|
||||
}
|
||||
// if u.MCName != "VaalaCat" {
|
||||
// return true
|
||||
// }
|
||||
if approveTime, ok := a.UserMap.Load(u.MCName); ok {
|
||||
if !expireMode {
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user