summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/settings/security/demo/main.cpp19
1 files changed, 4 insertions, 15 deletions
diff --git a/core/settings/security/demo/main.cpp b/core/settings/security/demo/main.cpp
index 4ae76e4..df91250 100644
--- a/core/settings/security/demo/main.cpp
+++ b/core/settings/security/demo/main.cpp
@@ -14,21 +14,10 @@
int main( int argc, char ** argv )
{
Opie::Core::OApplication app(argc, argv, "Multi-authentication demo");
- /* Constructs the main window, which displays messages and blocks
- * access to the desktop
+ /*
+ * Run authentication and retursn if successfull
+ * This uses the global settings
*/
- Opie::Security::MultiauthMainWindow win;
-
- app.showMainWidget(&win);
-
- // resize the QDialog object so it fills all the screen
- QRect desk = qApp->desktop()->geometry();
- win.setGeometry( 0, 0, desk.width(), desk.height() );
-
- // the authentication has already succeeded (without win interactions)
- if ( win.isAlreadyDone() )
- return 0;
-
- return app.exec();
+ Opie::Security::MultiauthPassword::authenticate();
}