diff --git a/en/14.4.md b/en/14.4.md index 8ec956a5..2bc3cf84 100644 --- a/en/14.4.md +++ b/en/14.4.md @@ -151,7 +151,7 @@ Figure 14.6 authorized Github information gets displayed after the login page ## Custom authentication -Custom authentication and session are generally a combination of proven, the following code from an open source based beego blog: +Custom authentication is generally combined with session authentication; the following code is a Beego based open source blog which demonstrates this: //Login process func (this *LoginController) Post() { @@ -244,7 +244,7 @@ Custom authentication and session are generally a combination of proven, the fol return true } -With the user log in and registration, where you can add other modules such as the judgment of whether the user log in: +Once you have implemented user login and registration, other modules can be added to determine whether the user has been logged in or not: func (this *AddBlogController) Prepare() { sess := globalSessions.SessionStart(this.Ctx.ResponseWriter, this.Ctx.Request)