From f9c7f3f99c5468f6c55ebc707e9e8987e5e88e01 Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Tue, 28 Jun 2011 10:07:42 -0400 Subject: [PATCH] - Added function to create random passwords in auth library. - Fixed {RECORDID} placeholder in SQL datasource strings. --- interface/web/tools/form/user_settings.tform.php | 25 +++++++++++++++++++++++-- 1 files changed, 23 insertions(+), 2 deletions(-) diff --git a/interface/web/tools/form/user_settings.tform.php b/interface/web/tools/form/user_settings.tform.php index 4ca9442..6531611 100644 --- a/interface/web/tools/form/user_settings.tform.php +++ b/interface/web/tools/form/user_settings.tform.php @@ -69,7 +69,7 @@ $form["db_history"] = "no"; $form['tab_default'] = 'users'; $form['list_default'] = 'index.php'; -$form['auth'] = 'yes'; +$form['auth'] = 'no'; //* 0 = id of the user, > 0 id must match with id of current user $form['auth_preset']['userid'] = 0; @@ -104,6 +104,7 @@ 'passwort' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'PASSWORD', + 'encryption'=> 'CRYPT', 'regex' => '', 'errmsg' => '', 'default' => '', @@ -132,6 +133,26 @@ 'maxlength' => '2', 'rows' => '', 'cols' => '' + ), + 'id_rsa' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT id_rsa FROM client WHERE {AUTHSQL}', + 'valuefield'=> 'id_rsa' + ), + 'value' => '' + ), + 'ssh_rsa' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT ssh_rsa FROM client WHERE {AUTHSQL}', + 'valuefield'=> 'ssh_rsa' + ), + 'value' => '' ) ################################## # ENDE Datenbankfelder @@ -140,4 +161,4 @@ ); -?> \ No newline at end of file +?> -- Gitblit v1.9.1