We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16cb49e commit 208b984Copy full SHA for 208b984
internal/webserver/handlers.go
@@ -687,6 +687,9 @@ func (ws *WebServer) handlerPostMail(ctx *routing.Context) error {
687
return jsonError(ctx, err, fasthttp.StatusInternalServerError)
688
}
689
690
+ user.MailAddress = ""
691
+ ws.cache.SetUserByID(user.UID, user)
692
+
693
return jsonResponse(ctx, nil, fasthttp.StatusOK)
694
695
@@ -738,6 +741,11 @@ func (ws *WebServer) handlerPostConfirmMail(ctx *routing.Context) error {
738
741
739
742
740
743
744
+ if user, err := ws.cache.GetUserByID(data.UserID); err == nil && user != nil {
745
+ user.MailAddress = data.MailAddress
746
747
+ }
748
749
return jsonResponse(ctx, err, fasthttp.StatusOK)
750
751
0 commit comments