R34842 - /trunk/phpgwapi/inc/class.auth.inc.php

Author: ralfbecker
New Revision: 34842

URL: http://www.egroupware.org/viewvc/egroupware?rev=34842&view=rev
Log:
small docu update

Modified:
trunk/phpgwapi/inc/class.auth.inc.php

Modified: trunk/phpgwapi/inc/class.auth.inc.php
URL: http://www.egroupware.org/viewvc/egroupware/trunk/phpgwapi/inc/class.auth.inc.php?rev=34842&r1=34841&r2=34842&view=diff

— trunk/phpgwapi/inc/class.auth.inc.php (original)
+++ trunk/phpgwapi/inc/class.auth.inc.php Wed May 4 15:32:58 2011
@@ -258,10 +258,11 @@
*
* encryption type set in setup and calls the appropriate encryption functions
*

    • @param $cleartext cleartext password
    • @param $encrypted encrypted password, can have a {hash} prefix, which overrides $type
    • @param $type type of encryption
    • @param $username used as optional key of encryption for md5_hmac
    • @param string $cleartext cleartext password
    • @param string $encrypted encrypted password, can have a {hash} prefix, which overrides $type
    • @param string $type type of encryption
    • @param string $username used as optional key of encryption for md5_hmac
    • @return boolean
      */
      static function compare_password($cleartext,$encrypted,$type,$username=’’)
      {
      @@ -286,14 +287,11 @@
      // ToDo: the others …
      }
      }
  •   switch($type)
      {
      	case 'plain':
    
  •   		if(strcmp($cleartext,$encrypted) == 0)
    
  •   		{
    
  •   			return True;
    
  •   		}
    
  •   		return False;
    
  •   		return strcmp($cleartext,$encrypted) == 0;
      	case 'smd5':
      		return self::smd5_compare($cleartext,$encrypted);
      	case 'sha':
    

WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today. Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd


eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs