1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-10 21:45:57 +00:00
Makis Maropoulos
2016-06-22 12:45:57 +03:00
parent e6bc24b648
commit 56f78567a2
5 changed files with 24 additions and 26 deletions

View File

@@ -112,7 +112,7 @@ func main() {
func myAuthMiddleware(c *iris.Context) {
s := c.Session()
if s.GetString("username") == "myusername" && s.GetString("passowrd") == "mypassword" {
if s.GetString("username") == "myusername" && s.GetString("password") == "mypassword" {
c.Next()
} else {
c.EmitError(iris.StatusUnauthorized)