MVC Identity 2 - HasBeenVerifiedAsync FAIL

时间:2015-03-28 22:20:36

标签: asp.net-mvc asp.net-identity

我相信你们都看到了以下代码:

 Public Async Function VerifyCode(provider As String, returnUrl As String, rememberMe As Boolean, email As String) As Task(Of ActionResult)
        ' Require that the user has already logged in via username/password or external login
        If Not Await SignInManager.HasBeenVerifiedAsync() Then
            Return View("Error")
        End If
        Return View(New VerifyCodeViewModel() With {
            .Provider = provider,
            .ReturnUrl = returnUrl,
            .RememberMe = rememberMe, .Email = email
        })
    End Function

当我第一次登录该网站时,HasBeenVerifiedAsync表示该用户未登录。如果我退出然后重新登录,则传递为TRUE。

任何想法为什么会发生这种情况似乎都是一个错误....我认为它正在检查令牌...这看起来像是通过提琴手来了......

0 个答案:

没有答案