summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorLoui Chang <louipc.ist@gmail.com>2008-02-08 22:49:06 +0100
committerSimo Leone <simo@archlinux.org>2008-03-23 09:04:16 +0100
commit0e32c8648f81ef02c6ad7650f8b31428dd0f5b80 (patch)
treec90672431fc19365ce4b304046ae998cdfc85f2a /web
parenta5a8895f497e4c274870e4519c5526542c91dc27 (diff)
downloadaur-0e32c8648f81ef02c6ad7650f8b31428dd0f5b80.tar.gz
aur-0e32c8648f81ef02c6ad7650f8b31428dd0f5b80.tar.xz
Changed valid_passwd() to check for non-empty password instead of good_passwd()
Signed-off-by: Loui Chang <louipc.ist@gmail.com> Signed-off-by: Simo Leone <simo@archlinux.org>
Diffstat (limited to 'web')
-rw-r--r--web/lib/acctfuncs.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/lib/acctfuncs.inc b/web/lib/acctfuncs.inc
index 29c80deb..57751014 100644
--- a/web/lib/acctfuncs.inc
+++ b/web/lib/acctfuncs.inc
@@ -728,7 +728,7 @@ function good_passwd( $passwd )
*/
function valid_passwd( $userID, $passwd )
{
- if ( good_passwd($passwd) ) {
+ if ( strlen($passwd) > 0 ) {
$dbh = db_connect();
$q = "SELECT ID FROM Users".
" WHERE ID = '$userID'" .