Skip to content

Commit a1716a5

Browse files
committed
Fix bug in error reporting login
1 parent a2eb03a commit a1716a5

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-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

0 commit comments

Comments
 (0)