File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -687,6 +687,9 @@ func (ws *WebServer) handlerPostMail(ctx *routing.Context) error {
687
687
return jsonError (ctx , err , fasthttp .StatusInternalServerError )
688
688
}
689
689
690
+ user .MailAddress = ""
691
+ ws .cache .SetUserByID (user .UID , user )
692
+
690
693
return jsonResponse (ctx , nil , fasthttp .StatusOK )
691
694
}
692
695
@@ -738,6 +741,11 @@ func (ws *WebServer) handlerPostConfirmMail(ctx *routing.Context) error {
738
741
return jsonError (ctx , err , fasthttp .StatusInternalServerError )
739
742
}
740
743
744
+ if user , err := ws .cache .GetUserByID (data .UserID ); err == nil && user != nil {
745
+ user .MailAddress = data .MailAddress
746
+ ws .cache .SetUserByID (user .UID , user )
747
+ }
748
+
741
749
return jsonResponse (ctx , err , fasthttp .StatusOK )
742
750
}
743
751
You can’t perform that action at this time.
0 commit comments