mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-20 21:34:11 -07:00
fixed i18n login bug
This commit is contained in:
parent
fd4e68bb8c
commit
aeeaab39aa
1 changed files with 2 additions and 0 deletions
|
@ -33,7 +33,9 @@ if (isset($_POST['user']) && isset($_POST['password'])) {
|
||||||
exec(VESTA_CMD ."v-check-user-password ".$v_user." ".$v_password." '".$_SERVER["REMOTE_ADDR"]."'", $output, $return_var);
|
exec(VESTA_CMD ."v-check-user-password ".$v_user." ".$v_password." '".$_SERVER["REMOTE_ADDR"]."'", $output, $return_var);
|
||||||
if ( $return_var > 0 ) {
|
if ( $return_var > 0 ) {
|
||||||
$ERROR = "<a class=\"error\">".__('Invalid username or password')."</a>";
|
$ERROR = "<a class=\"error\">".__('Invalid username or password')."</a>";
|
||||||
|
|
||||||
// Set system language
|
// Set system language
|
||||||
|
unset($output);
|
||||||
exec (VESTA_CMD . "v-list-sys-config json", $output, $return_var);
|
exec (VESTA_CMD . "v-list-sys-config json", $output, $return_var);
|
||||||
$data = json_decode(implode('', $output), true);
|
$data = json_decode(implode('', $output), true);
|
||||||
if (!empty( $data['config']['LANGUAGE'])) {
|
if (!empty( $data['config']['LANGUAGE'])) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue