1
0
Mirror von https://github.com/nextcloud/server.git synchronisiert 2024-09-02 05:55:17 +02:00

Get Hot New Fixes (TM)

Dieser Commit ist enthalten in:
Jakob Sack 2011-04-16 23:02:54 +02:00
Ursprung a7da3cd6a0
Commit 7035c0417c
3 geänderte Dateien mit 2 neuen und 3 gelöschten Zeilen

Datei anzeigen

@ -165,7 +165,6 @@ CREATE TABLE IF NOT EXISTS `properties` (
CREATE TABLE IF NOT EXISTS `users` (
`uid` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`password` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`uid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

Datei anzeigen

@ -71,7 +71,7 @@ class OC_USER_DATABASE extends OC_USER_BACKEND {
* @param string $password The password of the user
*/
public static function login( $username, $password ){
$query = OC_DB::prepare( "SELECT `uid`, `name` FROM `*PREFIX*users` WHERE `uid` = ? AND `password` = ?" );
$query = OC_DB::prepare( "SELECT `uid` FROM `*PREFIX*users` WHERE `uid` = ? AND `password` = ?" );
$result = $query->execute( array( $username, sha1( $password )));
if( $result->numRows() > 0 ){

Datei anzeigen

@ -152,7 +152,7 @@ class OC_DB {
// Die if we have an error (error means: bad query, not 0 results!)
if( PEAR::isError($result)) {
$entry = 'DB Error: "'.$result->getMessage().'"<br />';
$entry .= 'Offending command was: '.$cmd.'<br />';
$entry .= 'Offending command was: '.$query.'<br />';
error_log( $entry );
die( $entry );
}