src/snac/server/database/SQL.php
/**
     * Check if a password matches
     *
     * Select a record with matching appUserID and password. Essentially, if the password it not a match, it
     * will return a null.
     *
     * @param integer $appUserID The numeric user id
     *
     * @param string $passwd An encrypted password
     *
     * @return integer User id
     */
Check if a password matches
Select a record with matching appUserID and password. Essentially, if the password it not a match, it
will return a null.

@param integer $appUserID The numeric user id

@param string $passwd An encrypted password

@return integer User id
Check if a password matches Select a record with matching appUserID and password . Essentially if the password it not a match it will return a null . @param integer $appUserID The numeric user id @param string $passwd An encrypted password @return integer User id
public function selectMatchingPassword($appUserID, $passwd)
    {
        $result = $this->sdb->query(
            'select id from  appuser where password=$1 and id=$2',
            array($passwd, $appUserID));
        $row = $this->sdb->fetchrow($result);
        return $row['id'];
    }
public function selectMatchingPassword ( $ appUserID , $ passwd ) { $ result = $ this -> sdb -> query ( 'select id from  appuser where password=$1 and id=$2' , array ( $ passwd , $ appUserID ) ) ; $ row = $ this -> sdb -> fetchrow ( $ result ) ; return $ row [ 'id' ] ; }
Check if a password matches
 Select a record with matching appUserID and password.
Check if a password matches Select a record with matching appUserID and password .