forked from extern/egroupware
Fix passwd field in create
This commit is contained in:
parent
80124149a7
commit
e54d4c4f1a
@ -214,7 +214,7 @@
|
||||
{
|
||||
$this->db->query("insert into phpgw_accounts (account_lid, account_type, account_pwd, "
|
||||
. "account_firstname, account_lastname, account_status, account_expires) values ('" . $account_info['lid']
|
||||
. "','" . $account_info['type'] . "','" . md5($account_info['pwd']) . "', '" . $account_info['firstname']
|
||||
. "','" . $account_info['type'] . "','" . md5($account_info['passwd']) . "', '" . $account_info['firstname']
|
||||
. "','" . $account_info['lastname'] . "','" . $account_info['status'] . "','" . $account_info['expires']
|
||||
. "')",__LINE__,__FILE__);
|
||||
}
|
||||
@ -226,7 +226,8 @@
|
||||
// Why on earth is this a random number ?!
|
||||
// This should also use the above function (jengo)
|
||||
$accountid = mt_rand (100, 600000);
|
||||
if ($default_prefs == False) {
|
||||
if ($default_prefs == False)
|
||||
{
|
||||
$defaultprefs = 'a:5:{s:6:"common";a:10:{s:9:"maxmatchs";s:2:"15";s:12:"template_set";s:8:"verdilak";s:5:"theme";s:6:"purple";s:13:"navbar_format";s:5:"icons";s:9:"tz_offset";N;s:10:"dateformat";s:5:"m/d/Y";s:10:"timeformat";s:2:"12";s:4:"lang";s:2:"en";s:11:"default_app";N;s:8:"currency";s:1:"$";}s:11:"addressbook";a:1:{s:0:"";s:4:"True";}:s:8:"calendar";a:4:{s:13:"workdaystarts";s:1:"7";s:11:"workdayends";s:2:"15";s:13:"weekdaystarts";s:6:"Monday";s:15:"defaultcalendar";s:9:"month.php";}}';
|
||||
// $defaultprefs = 'a:5:{s:6:"common";a:1:{s:0:"";s:2:"en";}s:11:"addressbook";a:1:{s:0:"";s:4:"True";}s:8:"calendar";a:1:{s:0:"";s:13:"workdaystarts";}i:15;a:1:{s:0:"";s:11:"workdayends";}s:6:"Monday";a:1:{s:0:"";s:13:"weekdaystarts";}}';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user