Wednesday, September 9, 2015

Incorrect UserName And Password

@using (Html.BeginForm("Login", "Account", new { id = "signin-form", ReturnUrl = ViewBag.ReturnUrl }, FormMethod.Post))
    {
        @Html.AntiForgeryToken()
        if (!ViewData.ModelState.IsValid)
        {
            <div class="alert alert-danger alert-dismissible" role="alert">
                <button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                <strong>Error!</strong> Incorrect email or password
            </div>
        }


    }