diff --git a/workflow/engine/controllers/installer.php b/workflow/engine/controllers/installer.php index 3b2e5da94..6222f97fc 100755 --- a/workflow/engine/controllers/installer.php +++ b/workflow/engine/controllers/installer.php @@ -840,10 +840,10 @@ class Installer extends Controller $query = sprintf( "USE %s;", $wf_workpace ); $this->mysqlQuery( $query ); - $query = sprintf( "UPDATE USERS SET USR_USERNAME = '%s', USR_PASSWORD = '%s' WHERE USR_UID = '00000000000000000000000000000001' ", $adminUsername, md5( $adminPassword ) ); + $query = sprintf( "UPDATE USERS SET USR_USERNAME = '%s', USR_LASTNAME = '%s', USR_PASSWORD = '%s' WHERE USR_UID = '00000000000000000000000000000001' ", $adminUsername, $adminUsername, md5( $adminPassword ) ); $this->mysqlQuery( $query ); - $query = sprintf( "UPDATE RBAC_USERS SET USR_USERNAME = '%s', USR_PASSWORD = '%s' WHERE USR_UID = '00000000000000000000000000000001' ", $adminUsername, md5( $adminPassword ) ); + $query = sprintf( "UPDATE RBAC_USERS SET USR_USERNAME = '%s', USR_LASTNAME = '%s', USR_PASSWORD = '%s' WHERE USR_UID = '00000000000000000000000000000001' ", $adminUsername, $adminUsername, md5( $adminPassword ) ); $this->mysqlQuery( $query ); // Write the paths_installed.php file (contains all the information configured so far) diff --git a/workflow/engine/templates/users/users.js b/workflow/engine/templates/users/users.js index e7b496cfd..e816a64a2 100755 --- a/workflow/engine/templates/users/users.js +++ b/workflow/engine/templates/users/users.js @@ -409,14 +409,16 @@ Ext.onReady(function () { fieldLabel : ' * ' + _('ID_FIRSTNAME'), xtype : 'textfield', width : 260, - allowBlank : false + allowBlank : false, + regex : /^[a-zA-Z]+$/ }, { id : 'USR_LASTNAME', fieldLabel : ' * ' + _('ID_LASTNAME'), xtype : 'textfield', width : 260, - allowBlank : false + allowBlank : false, + regex : /^[a-zA-Z]+$/ }, { id : 'USR_USERNAME', @@ -463,7 +465,7 @@ Ext.onReady(function () { vtype : 'email', xtype : 'textfield', width : 260, - allowBlank : false + allowBlank : false, }, { xtype : 'textarea',