mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-05-13 17:46:02 +00:00
14 lines
261 B
Go
14 lines
261 B
Go
|
|
package service
|
||
|
|
|
||
|
|
import (
|
||
|
|
"reflect"
|
||
|
|
"testing"
|
||
|
|
)
|
||
|
|
|
||
|
|
func TestLoginAttemptDoesNotCarryPassword(t *testing.T) {
|
||
|
|
typ := reflect.TypeOf(LoginAttempt{})
|
||
|
|
if _, ok := typ.FieldByName("Password"); ok {
|
||
|
|
t.Fatal("LoginAttempt must not carry attempted passwords")
|
||
|
|
}
|
||
|
|
}
|