Skip to content

Commit

Permalink
Remove % from sessionSecret
Browse files Browse the repository at this point in the history
  • Loading branch information
amitaibu committed May 14, 2024
1 parent 847d9d6 commit 4113176
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion exe/IHP/CLI/NewSessionSecret.hs
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,8 @@ main :: IO ()
main = withUtf8 do
(string, _) <- ClientSession.randomKey
let encoded = Base64.encode string
ByteString.putStr encoded

-- Create a ByteString from a newline character.
let newline = Char8.pack "\n"
-- Append newline to encoded output and print, so it won't print `%` as a suffix on certain terminals.
ByteString.putStr (ByteString.append encoded newline)

0 comments on commit 4113176

Please sign in to comment.