Fixed account connect
This commit is contained in:
parent
6c7fc902c0
commit
4ed9cb7012
@ -98,6 +98,10 @@ func InstallFacebookAuth(app *aero.Application) {
|
||||
ctx.Error(http.StatusInternalServerError, "Could not connect account to Facebook account", err)
|
||||
}
|
||||
|
||||
// Save in DB
|
||||
user.Save()
|
||||
|
||||
// Log
|
||||
authLog.Info("Added Facebook ID to existing account", user.ID, user.Nick, ctx.RealIP(), user.Email, user.RealName())
|
||||
|
||||
return ctx.Redirect("/")
|
||||
|
@ -104,6 +104,10 @@ func InstallGoogleAuth(app *aero.Application) {
|
||||
ctx.Error(http.StatusInternalServerError, "Could not connect account to Google account", err)
|
||||
}
|
||||
|
||||
// Save in DB
|
||||
user.Save()
|
||||
|
||||
// Log
|
||||
authLog.Info("Added Google ID to existing account", user.ID, user.Nick, ctx.RealIP(), user.Email, user.RealName())
|
||||
|
||||
return ctx.Redirect("/")
|
||||
|
Loading…
Reference in New Issue
Block a user