summaryrefslogtreecommitdiff
path: root/src/backend/libpq/password.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2001-08-17 15:44:17 +0000
committerBruce Momjian <bruce@momjian.us>2001-08-17 15:44:17 +0000
commit9df188bc0d40c7c52d58d9678eb374dc68ee49a2 (patch)
treea39518554780cafa51a4ef0e318dbefff94010ba /src/backend/libpq/password.c
parent0a3094b6f3feb920e5abaf8ae1b881cb025d0f99 (diff)
A little more code reorg for MD5/crypt.
Diffstat (limited to 'src/backend/libpq/password.c')
-rw-r--r--src/backend/libpq/password.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/libpq/password.c b/src/backend/libpq/password.c
index e98ab6bc0af..4dde3afe99c 100644
--- a/src/backend/libpq/password.c
+++ b/src/backend/libpq/password.c
@@ -2,7 +2,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: password.c,v 1.38 2001/08/15 18:42:15 momjian Exp $
+ * $Id: password.c,v 1.39 2001/08/17 15:44:17 momjian Exp $
*
*/
@@ -82,8 +82,8 @@ verify_password(const Port *port, const char *user, const char *password)
* the current code needs non-encrypted passwords to
* encrypt with a random salt.
*/
- if (port->auth_method == uaCrypt ||
- port->auth_method == uaMD5 ||
+ if (port->auth_method == uaMD5 ||
+ port->auth_method == uaCrypt ||
test_pw == NULL ||
test_pw[0] == '\0' ||
strcmp(test_pw, "+") == 0)