commit babe601e4bd4da5d489ae374bb849299a1cf63d5
parent 8c5b72162a0c5967d97f12e99ba17d4edf2392e2
Author: Felicitus <felicitus@felicitus.org>
Date: Thu, 23 Jun 2011 12:34:06 +0200
Removed auto-login, changed default admin user
Diffstat:
2 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/frontend/js/Dialogs/Auth/LoginDialog.js b/frontend/js/Dialogs/Auth/LoginDialog.js
@@ -15,7 +15,7 @@ Ext.define('PartKeepr.LoginDialog', {
this.loginField = Ext.ComponentMgr.create({
xtype: 'textfield',
- value: "test",
+ value: "",
fieldLabel: i18n("Username"),
anchor: '100%'
});
@@ -23,7 +23,7 @@ Ext.define('PartKeepr.LoginDialog', {
this.passwordField = Ext.ComponentMgr.create({
xtype: 'textfield',
inputType: "password",
- value: "test",
+ value: "",
fieldLabel: i18n("Password"),
anchor: '100%'
});
@@ -54,9 +54,11 @@ Ext.define('PartKeepr.LoginDialog', {
}]
});
- this.login();
-
this.callParent(arguments);
+
+ this.on("show", function () { this.loginField.focus(); }, this);
+
+ //this.loginField.focus();
},
login: function () {
var call = new PartKeepr.ServiceCall("Auth", "login");
diff --git a/testing/SetupDatabase.php b/testing/SetupDatabase.php
@@ -87,8 +87,8 @@ $tool->createSchema($classes);
/* Create initial test user */
$user = new User();
-$user->setUsername("test");
-$user->setPassword("test");
+$user->setUsername("admin");
+$user->setPassword("admin");
$user->setAdmin(true);
PartKeepr::getEM()->persist($user);
@@ -432,8 +432,7 @@ PartKeepr::getEM()->flush();
-
-echo "All done.\n";
+echo "All done. Use the user 'admin' with password 'admin' to login\n";
apc_clear_cache();
apc_clear_cache("user");