Make user login atomic #4
|
@ -55,11 +55,6 @@ func FindOrSaveUser(dbConn *sql.DB, user *User) (*User, error) {
|
|||
return nil, err
|
||||
}
|
||||
|
||||
// _, err = dbConn.Exec(`UPDATE users SET mail = ?, username = ?, display_name = ? WHERE id = ?;`, user.Mail, user.Username, user.DisplayName, user.ID)
|
||||
// if err != nil {
|
||||
// return nil, err
|
||||
// }
|
||||
|
||||
return user, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue