Added easier setter funcs for flash messages.
This commit is contained in:
parent
fc1d3cdc33
commit
d40244b3d1
4 changed files with 30 additions and 14 deletions
|
|
@ -20,6 +20,6 @@ func (l *Login) Get(c echo.Context) error {
|
|||
}
|
||||
|
||||
func (l *Login) Post(c echo.Context) error {
|
||||
msg.Set(c, msg.Danger, "Invalid credentials. Please try again.")
|
||||
msg.Danger(c, "Invalid credentials. Please try again.")
|
||||
return l.Get(c)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue