3x-ui/web/service/tgbot_test.go

14 lines
262 B
Go
Raw Normal View History

package service
import (
"reflect"
"testing"
)
func TestLoginAttemptDoesNotCarryPassword(t *testing.T) {
typ := reflect.TypeFor[LoginAttempt]()
if _, ok := typ.FieldByName("Password"); ok {
t.Fatal("LoginAttempt must not carry attempted passwords")
}
}