summaryrefslogtreecommitdiffstats
path: root/sanitycheck.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'sanitycheck.cgi')
-rwxr-xr-xsanitycheck.cgi19
1 files changed, 0 insertions, 19 deletions
diff --git a/sanitycheck.cgi b/sanitycheck.cgi
index bc3b823c7..c8f628e58 100755
--- a/sanitycheck.cgi
+++ b/sanitycheck.cgi
@@ -165,25 +165,6 @@ CrossCheck("profiles", "userid",
["components", "initialowner", "value"],
["components", "initialqacontact", "value", ["0"]]);
-Status("Checking passwords");
-SendSQL("SELECT COUNT(*) FROM profiles WHERE cryptpassword != ENCRYPT(password, left(cryptpassword, 2))");
-my $count = FetchOneColumn();
-if ($count) {
- Alert("$count entries have problems in their crypted password.");
- if ($::FORM{'rebuildpasswords'}) {
- Status("Rebuilding passwords");
- SendSQL("UPDATE profiles
- SET cryptpassword = ENCRYPT(password,
- left(cryptpassword, 2))
- WHERE cryptpassword != ENCRYPT(password,
- left(cryptpassword, 2))");
- Status("Passwords have been rebuilt.");
- } else {
- print qq{<a href="sanitycheck.cgi?rebuildpasswords=1">Click here to rebuild the crypted passwords</a><p>\n};
- }
-}
-
-
Status("Checking groups");
SendSQL("select bit from groups where bit != pow(2, round(log(bit) / log(2)))");