Remove unnecessary assignment
This commit is contained in:
parent
9e4216301d
commit
edccb95be3
@ -148,8 +148,7 @@ func createSessionCookie(app *app.App, w http.ResponseWriter, username string) (
|
||||
}
|
||||
|
||||
// Store token in auth_token column of the users table
|
||||
sqlStatement := "UPDATE users SET auth_token = $1 WHERE username = $2"
|
||||
_, err = app.Db.Exec(sqlStatement, token, username)
|
||||
_, err = app.Db.Exec("UPDATE users SET auth_token = $1 WHERE username = $2", token, username)
|
||||
if err != nil {
|
||||
log.Println("Error setting auth_token column in users table")
|
||||
log.Println(err)
|
||||
|
Loading…
Reference in New Issue
Block a user