mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-18 22:07:32 +00:00
16 lines
276 B
Go
16 lines
276 B
Go
|
package model
|
||
|
|
||
|
import "net"
|
||
|
|
||
|
type BrowserInfo struct {
|
||
|
UserAgent string
|
||
|
AcceptLanguage string
|
||
|
RemoteIP net.IP
|
||
|
}
|
||
|
|
||
|
func (i *BrowserInfo) IsValid() bool {
|
||
|
return i.UserAgent != "" &&
|
||
|
i.AcceptLanguage != "" &&
|
||
|
i.RemoteIP != nil && !i.RemoteIP.IsUnspecified()
|
||
|
}
|