Skip to content

Commit f5b33c6

Browse files
authored
Merge pull request hestiacp#2853 from jaapmarcus/fix/improve-auth-log
Fix bug in logging failed log attempts
2 parents 2caf941 + ae2ba3c commit f5b33c6

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

bin/v-log-user-login

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ is_format_valid 'user' 'ip'
3838
is_common_format_valid "$session_id" "SESSION_ID"
3939
format_no_quotes "$user_agent" "USER_AGENT"
4040
is_common_format_valid "$authlog" "AUTHLOG"
41-
is_common_format_valid "$reason" "REASON"
41+
format_no_quotes "$reason" "REASON"
4242

4343

4444
is_object_valid 'user' 'USER' "$user"

test/checks.bats

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,11 @@ r' "key"
320320
assert_failure $E_INVALID
321321
}
322322

323+
@test "format_no_quotes test2" {
324+
run format_no_quotes 'test bericht' "key"
325+
assert_success
326+
}
327+
323328
@test "format_no_quotes .." {
324329
run format_no_quotes '..' "key"
325330
assert_success

web/templates/pages/edit_server.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@
8080
if ((!empty($v_timezone)) && ( $key == $v_timezone)){
8181
echo ' selected' ;
8282
}
83+
if($key == "UTC" && $v_timezone == "Etc/UTC"){
84+
echo ' selected' ;
85+
}
8386
echo ">".$value."</option>\n";
8487
}
8588
?>

0 commit comments

Comments
 (0)