Adds a default value to Requests::Login#mid.

This commit is contained in:
Luka Vandervelden 2020-05-17 23:24:32 +02:00
parent ff74b4f217
commit 0e94bf78db

View File

@ -5,8 +5,10 @@ require "base64"
class FileStorage::Request
JSONIPC.request Login, 0 do
property mid : String
property mid : String = ""
property token : String
def initialize(@token)
@mid = UUID.random.to_s
end