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

dev
Luka Vandervelden 2020-05-17 23:24:32 +02:00
parent ff74b4f217
commit 0e94bf78db
1 changed files with 3 additions and 1 deletions

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