|
@@ -160,6 +160,10 @@ func initLoginBuilder(db *gorm.DB, pb *presets.Builder, ab *activity.ActivityBui
|
|
|
return ab.AddCustomizedRecord("reset-password", false, r.Context(), user)
|
|
|
}).
|
|
|
AfterChangePassword(func(r *http.Request, user interface{}, _ ...interface{}) error {
|
|
|
+ if err := expireAllSessionLogs(user.(*models.User).ID); err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+
|
|
|
return ab.AddCustomizedRecord("change-password", false, r.Context(), user)
|
|
|
}).
|
|
|
AfterExtendSession(func(r *http.Request, user interface{}, extraVals ...interface{}) error {
|