Fix translation for section "Custom authentication" in 14.4.md
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user