correct inverted logic from commit f3ba8a
diff --git a/src/vty/vty.c b/src/vty/vty.c
index 67ee100..e529ee7 100644
--- a/src/vty/vty.c
+++ b/src/vty/vty.c
@@ -1650,7 +1650,7 @@
 	vty_out(vty, "line vty%s", VTY_NEWLINE);
 
 	/* login */
-	if (password_check)
+	if (!password_check)
 		vty_out(vty, " no login%s", VTY_NEWLINE);
 
 	vty_out(vty, "!%s", VTY_NEWLINE);