Fixed account connect

This commit is contained in:
Eduard Urbach 2017-07-03 00:00:41 +02:00
parent 6c7fc902c0
commit 4ed9cb7012
2 changed files with 8 additions and 0 deletions

View File

@ -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("/")

View File

@ -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("/")