[mw-devel] MARVIN r70 - trunk
pwb at sucs.org
pwb at sucs.org
Sat Apr 15 01:39:49 BST 2006
Author: pwb
Date: 2006-04-15 01:39:49 +0100 (Sat, 15 Apr 2006)
New Revision: 70
Modified:
trunk/server.sl
Log:
fixed silly bug where login was refused only if the user gave the correct password
Modified: trunk/server.sl
===================================================================
--- trunk/server.sl 2006-04-14 21:24:44 UTC (rev 69)
+++ trunk/server.sl 2006-04-15 00:39:49 UTC (rev 70)
@@ -42,7 +42,7 @@
}
crypted = crypt(msg.password, salt);
- if (crypted == password) {
+ if (crypted != password) {
answer.status = 301;
answer.text = "Sorry, wrong password for user "+msg.username;
message_reply(session, msgid, "login", answer);
More information about the mw-devel
mailing list