Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
ISPConfig 3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kevin
ISPConfig 3
Commits
56a3b2c3
Commit
56a3b2c3
authored
Apr 04, 2011
by
tbrehm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed: FS#1570 - Password broken when client is updated with the remote api.
parent
5c960fb4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
interface/lib/classes/remoting_lib.inc.php
interface/lib/classes/remoting_lib.inc.php
+4
-3
No files found.
interface/lib/classes/remoting_lib.inc.php
View file @
56a3b2c3
...
...
@@ -701,7 +701,7 @@ class remoting_lib {
function
ispconfig_sysuser_update
(
$params
,
$client_id
){
global
$app
;
$username
=
$app
->
db
->
quote
(
$params
[
"username"
]);
$password
=
$app
->
db
->
quote
(
$params
[
"password"
]);
$
clear_
password
=
$app
->
db
->
quote
(
$params
[
"password"
]);
$client_id
=
intval
(
$client_id
);
$salt
=
"$1$"
;
$base64_alphabet
=
'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
;
...
...
@@ -709,8 +709,9 @@ class remoting_lib {
$salt
.
=
$base64_alphabet
[
mt_rand
(
0
,
63
)];
}
$salt
.
=
"$"
;
$password
=
crypt
(
stripslashes
(
$password
),
$salt
);
$sql
=
"UPDATE sys_user set username = '
$username
', passwort = '
$password
' WHERE client_id =
$client_id
"
;
$password
=
crypt
(
stripslashes
(
$clear_password
),
$salt
);
if
(
$clear_password
)
$pwstring
=
", passwort = '
$password
'"
;
else
$pwstring
=
""
;
$sql
=
"UPDATE sys_user set username = '
$username
'
$pwstring
WHERE client_id =
$client_id
"
;
$app
->
db
->
query
(
$sql
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment