Skip to content

Commit

Permalink
Param 'admin' succeeds in PHP 7, fails in PHP 8. Should be 'username'
Browse files Browse the repository at this point in the history
body.json = list(method = "get_session_key",
                   id = " ",
                   params = list(admin = 'report',
                                 password = 'verysecret'))
  • Loading branch information
Jan-E committed Dec 25, 2022
1 parent 4e0f7c5 commit bc807c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/get_session_key.R
Expand Up @@ -14,7 +14,7 @@ get_session_key <- function(username = getOption('lime_username'),
password = getOption('lime_password')) {
body.json = list(method = "get_session_key",
id = " ",
params = list(admin = username,
params = list(username = username,
password = password))

# Need to use jsonlite::toJSON because single elements are boxed in httr, which
Expand Down

0 comments on commit bc807c6

Please sign in to comment.