From 15992c5f9b24eaf8df6f90d1993c85d73827b98f Mon Sep 17 00:00:00 2001 From: zecke Date: Fri, 06 Sep 2002 20:55:41 +0000 Subject: Backward and forward compability... --- (limited to 'core') diff --git a/core/launcher/transferserver.cpp b/core/launcher/transferserver.cpp index 28b7b49..9d18b7b 100644 --- a/core/launcher/transferserver.cpp +++ b/core/launcher/transferserver.cpp @@ -172,9 +172,15 @@ bool SyncAuthentication::checkPassword( const QString& password ) } // Second, check sync password... - if ( password.left(6) == "rootme" ) { - // fuckin TT gave us the wrong sync password. - // what a dumbassed password is rootme anyway. + QString pass = password.left(6); + /* old QtopiaDesktops are sending + * rootme newer versions got a Qtopia + * prefixed. Qtopia prefix will suceed + * until the sync software syncs up + * FIXME + */ + if ( pass == "rootme" || pass == "Qtopia") { + QString cpassword = QString::fromLocal8Bit( crypt( password.mid(8).local8Bit(), "qp" ) ); Config cfg("Security"); cfg.setGroup("Sync"); -- cgit v0.9.0.2