From 0e94bf78db3b725e0d8451d87c843e2f4f8c2f5e Mon Sep 17 00:00:00 2001 From: Luka Vandervelden Date: Sun, 17 May 2020 23:24:32 +0200 Subject: [PATCH] Adds a default value to Requests::Login#mid. --- src/common/requests/login.cr | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/common/requests/login.cr b/src/common/requests/login.cr index 76f476c..36a4808 100644 --- a/src/common/requests/login.cr +++ b/src/common/requests/login.cr @@ -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