Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
ISPConfig 3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Thomas
ISPConfig 3
Commits
95d4d5cf
Commit
95d4d5cf
authored
6 years ago
by
Choong Wei Tjeng
Browse files
Options
Downloads
Patches
Plain Diff
Also update sys_user language if it was specified through API client_update
parent
7c05ac39
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
interface/lib/classes/remoting_lib.inc.php
+10
-1
10 additions, 1 deletion
interface/lib/classes/remoting_lib.inc.php
with
10 additions
and
1 deletion
interface/lib/classes/remoting_lib.inc.php
+
10
−
1
View file @
95d4d5cf
...
@@ -308,7 +308,9 @@ class remoting_lib extends tform_base {
...
@@ -308,7 +308,9 @@ class remoting_lib extends tform_base {
global
$app
;
global
$app
;
$username
=
$params
[
"username"
];
$username
=
$params
[
"username"
];
$clear_password
=
$params
[
"password"
];
$clear_password
=
$params
[
"password"
];
$language
=
$params
[
'language'
];
$client_id
=
$app
->
functions
->
intval
(
$client_id
);
$client_id
=
$app
->
functions
->
intval
(
$client_id
);
if
(
!
isset
(
$params
[
'_ispconfig_pw_crypted'
])
||
$params
[
'_ispconfig_pw_crypted'
]
!=
1
)
$password
=
$app
->
auth
->
crypt_password
(
stripslashes
(
$clear_password
));
if
(
!
isset
(
$params
[
'_ispconfig_pw_crypted'
])
||
$params
[
'_ispconfig_pw_crypted'
]
!=
1
)
$password
=
$app
->
auth
->
crypt_password
(
stripslashes
(
$clear_password
));
else
$password
=
$clear_password
;
else
$password
=
$clear_password
;
$params
=
array
(
$username
);
$params
=
array
(
$username
);
...
@@ -318,8 +320,15 @@ class remoting_lib extends tform_base {
...
@@ -318,8 +320,15 @@ class remoting_lib extends tform_base {
}
else
{
}
else
{
$pwstring
=
""
;
$pwstring
=
""
;
}
}
$langstring
=
''
;
if
(
!
empty
(
$language
))
{
$langstring
=
', language = ?'
;
$params
[]
=
$language
;
}
$params
[]
=
$client_id
;
$params
[]
=
$client_id
;
$sql
=
"UPDATE sys_user set username = ?
$pwstring
WHERE client_id = ?"
;
$sql
=
"UPDATE sys_user set username = ?
$pwstring
$langstring
WHERE client_id = ?"
;
$app
->
db
->
query
(
$sql
,
true
,
$params
);
$app
->
db
->
query
(
$sql
,
true
,
$params
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment