diff --git a/dub.json b/dub.json index 339d7c2..9d8f2fc 100644 --- a/dub.json +++ b/dub.json @@ -9,7 +9,7 @@ ], "targetType" : "library", "dependencies" : { - "vibe-d:core" : "~>0.8.0-beta.4", + "vibe-d:core" : "~>0.8.0-beta.6", "vibe-d:data" : "*", "vibe-d:http" : "*", "vibe-d:web" : { diff --git a/source/oauth/webapp.d b/source/oauth/webapp.d index 6daea3c..a58dbcd 100644 --- a/source/oauth/webapp.d +++ b/source/oauth/webapp.d @@ -43,8 +43,7 @@ class OAuthWebapp { // For assert in oauthSession method version(assert) () @trusted { - import std.variant : Variant; - req.context["oauth.debug.login.checked"] = cast(Variant) true; + req.context["oauth.debug.login.checked"] = true; } (); if (!req.session) @@ -54,8 +53,7 @@ class OAuthWebapp settings ? OAuthSession.load(settings, req.session) : null) { () @trusted { - import std.variant : Variant; - req.context["oauth.session"] = cast(Variant) session; + req.context["oauth.session"] = session; } (); return true; @@ -97,8 +95,7 @@ class OAuthWebapp { // For assert in oauthSession method version(assert) () @trusted { - import std.variant : Variant; - req.context["oauth.debug.login.checked"] = cast(Variant) true; + req.context["oauth.debug.login.checked"] = true; } (); auto session = settings.userSession( @@ -143,7 +140,7 @@ class OAuthWebapp in { try - assert (req.context.get("oauth.debug.login.checked").get!bool); + assert (req.context.get!bool("oauth.debug.login.checked")); catch (Exception) assert(false); }