﻿@model LoginOrRegisterViewModel

@using (Html.BeginForm("Login", "Account", new { ReturnUrl = ViewBag.ReturnUrl }, FormMethod.Post, 
    new { @class="form-signin", @role="form"}))
{
    <div class="form-group">
        @Html.ValidationSummary(true)
    </div>

    <h2 class="form-signin-heading dark">Meld u alstublieft aan</h2>

    @Html.LabelFor(vm => vm.Login.UserName, new { @class="sr-only" })
    @Html.TextBoxFor(vm => vm.Login.UserName, 
        new { @class = "form-control", @type="email", @placeholder = "Gebruikersnaam of e-mailadres" })
    @Html.LabelFor(vm => vm.Login.Password, new { @class="sr-only" })
    @Html.PasswordFor(vm => vm.Login.Password, 
        new { @class = "form-control", @placeholder = "Wachtwoord" })

    <div class="checkbox dark">
      <label class="pull-left">
         @Html.CheckBoxFor(vm => vm.Login.RememberMe)
            Onthoud mij.
      </label>
      @Html.ActionLink("Wachtwoord vergeten?", "LostPassword", null, new { @class = "pull-right" })
    <br/>
    </div>
    <button class="btn btn-lg btn-primary btn-block" type="submit">Inloggen</button>

    if(ViewData.ModelState.ContainsKey("registration"))
    { 
        @ViewData.ModelState["registration"].Errors.First().ErrorMessage; 
    }
       
}    
﻿@model LoginOrRegisterViewModel

@using (Html.BeginForm("Login", "Account", new { ReturnUrl = ViewBag.ReturnUrl }, FormMethod.Post, 
    new { @class="form-signin", @role="form"}))
{
    <div class="form-group">
        @Html.ValidationSummary(true)
    </div>

    <h2 class="form-signin-heading dark">Meld u alstublieft aan</h2>

    @Html.LabelFor(vm => vm.Login.UserName, new { @class="sr-only" })
    @Html.TextBoxFor(vm => vm.Login.UserName, 
        new { @class = "form-control", @placeholder = "Gebruikersnaam of e-mailadres" })
    @Html.LabelFor(vm => vm.Login.Password, new { @class="sr-only" })
    @Html.PasswordFor(vm => vm.Login.Password, 
        new { @class = "form-control", @placeholder = "Wachtwoord" })

    <div class="checkbox dark">
      <label class="pull-left">
         @Html.CheckBoxFor(vm => vm.Login.RememberMe)
            Onthoud mij.
      </label>
      @Html.ActionLink("Wachtwoord vergeten?", "LostPassword", null, new { @class = "pull-right" })
    <br/>
    </div>
    <button class="btn btn-lg btn-primary btn-block" type="submit">Inloggen</button>

    if(ViewData.ModelState.ContainsKey("registration"))
    { 
        @ViewData.ModelState["registration"].Errors.First().ErrorMessage; 
    }
       
}    
Remove wrong type for username and e-mail field
Remove wrong type for username and e-mail field
