Skip to content

Commit

Permalink
Merge pull request #55 from nnev/login_fixes
Browse files Browse the repository at this point in the history
fixes according to comments on #53
  • Loading branch information
Merovius committed Dec 29, 2015
2 parents 8165719 + 966f978 commit 56c4029
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion http.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ func (k *Kasse) GetLoginPage(res http.ResponseWriter, req *http.Request) {

if err := ExecuteTemplate(res, TemplateInput{Title: "Login", Body: "login.html"}); err != nil {
k.log.Println("Could not render template:", err)
http.Error(res, "Internal error", 500)
http.Error(res, "Internal error", http.StatusInternalServerError)
return
}
}
Expand Down
4 changes: 2 additions & 2 deletions templates/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
<form method="POST">
<div class="mdl-textfield mdl-js-textfield">
<input class="mdl-textfield__input" type="text" name="username" />
<label class="mdl-textfield__label" for="username">Username<label>
<label class="mdl-textfield__label" for="username">Username</label>
</div>
<div class="mdl-textfield mdl-js-textfield">
<input class="mdl-textfield__input" type="password" name="password" />
<label class="mdl-textfield__label" for="password">Password<label>
<label class="mdl-textfield__label" for="password">Password</label>
</div>
<button class="mdl-button mdl-js-button mdl-button--colored" type="submit">
Login
Expand Down

0 comments on commit 56c4029

Please sign in to comment.