func (u *TeleportUser) Equals(other User) bool {
	if u.Name != other.GetName() {
		return false
	}
	otherLogins := other.GetAllowedLogins()
	if len(u.AllowedLogins) != len(otherLogins) {
		return false
	}
	for i := range u.AllowedLogins {
		if u.AllowedLogins[i] != otherLogins[i] {
			return false
		}
	}
	otherIdentities := other.GetIdentities()
	if len(u.OIDCIdentities) != len(otherIdentities) {
		return false
	}
	for i := range u.OIDCIdentities {
		if !u.OIDCIdentities[i].Equals(&otherIdentities[i]) {
			return false
		}
	}
	return true
}
// Equals checks if user equals to another
Equals checks if user equals to another
// Equals checks if user equals to another
func (u *TeleportUser) Equals(other User) bool {
	if u.Name != other.GetName() {
		return false
	}
	otherLogins := other.GetAllowedLogins()
	if len(u.AllowedLogins) != len(otherLogins) {
		return false
	}
	for i := range u.AllowedLogins {
		if u.AllowedLogins[i] != otherLogins[i] {
			return false
		}
	}
	otherIdentities := other.GetIdentities()
	if len(u.OIDCIdentities) != len(otherIdentities) {
		return false
	}
	for i := range u.OIDCIdentities {
		if !u.OIDCIdentities[i].Equals(&otherIdentities[i]) {
			return false
		}
	}
	return true
}
func ( u * TeleportUser ) Equals ( other User ) bool { if u . Name != other . GetName ( ) { return false } otherLogins := other . GetAllowedLogins ( ) if len ( u . AllowedLogins ) != len ( otherLogins ) { return false } for i := range u . AllowedLogins { if u . AllowedLogins [ i ] != otherLogins [ i ] { return false } } otherIdentities := other . GetIdentities ( ) if len ( u . OIDCIdentities ) != len ( otherIdentities ) { return false } for i := range u . OIDCIdentities { if ! u . OIDCIdentities [ i ] . Equals ( & otherIdentities [ i ] ) { return false } } return true }
Equals checks if user equals to another
Equals checks if user equals to another