mirror of
https://github.com/kataras/iris.git
synced 2025-12-20 11:27:06 +00:00
simplify some examples
This commit is contained in:
@@ -57,7 +57,7 @@ func h(ctx iris.Context) {
|
||||
// OR:
|
||||
user := ctx.User()
|
||||
username, _ := user.GetUsername()
|
||||
password, _ := user.GetPassword
|
||||
password, _ := user.GetPassword()
|
||||
ctx.Writef("%s %s:%s", ctx.Path(), username, password)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user