Created
June 4, 2019 02:14
-
-
Save eminetto/db6722e039d0bd538c9d9b56ebaa79a4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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