Skip to content

Instantly share code, notes, and snippets.

@eminetto
Created June 4, 2019 02:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eminetto/db6722e039d0bd538c9d9b56ebaa79a4 to your computer and use it in GitHub Desktop.
Save eminetto/db6722e039d0bd538c9d9b56ebaa79a4 to your computer and use it in GitHub Desktop.
func (l *loginService) Login(userName, password string) {
if l.userRepository.IsValid(userName, password) {
redirect("homepage")
return
}
addFlash("error", "Bad credentials")
redirect("login")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment