diff --git a/lib/wpscan/wp_user.rb b/lib/wpscan/wp_user.rb index 2734b9b5..019e05ad 100644 --- a/lib/wpscan/wp_user.rb +++ b/lib/wpscan/wp_user.rb @@ -63,7 +63,7 @@ class WpUser end def ==(other) - other.name == self.name and other.id == self.id and other.nickname == self.nickname + self === other end def ===(other) @@ -71,6 +71,6 @@ class WpUser end def eql?(other) - other.name === self.name and other.id === self.id and other.nickname === self.nickname + self === other end end