点击电子邮件链接以授权更改电子邮件地址时出现"Oops"错误

在尝试更改与账户关联的电子邮件地址时,系统会向用户发送一封包含如下格式链接的邮件:https://[domain]/u/authorize-email/[some token]。点击该链接后,论坛会显示错误消息:“哎呀!该页面不存在或为私密页面。”

来自 production.log 的日志:

Started GET "/u/authorize-email/[redacted]" for [redacted] at 2020-05-23 13:55:06 +0000
ActionController::RoutingError (No route matches [GET] "/u/authorize-email/[redacted]")
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.3/lib/action_dispatch/middleware/debug_exceptions.rb:36:in `call'
  Rendering exceptions/not_found.html.erb within layouts/no_ember
  Rendered exceptions/not_found.html.erb within layouts/no_ember (Duration: 1.0ms | Allocations: 517)
  Rendered layouts/_head.html.erb (Duration: 2.6ms | Allocations: 428)
  Rendered common/_discourse_stylesheet.html.erb (Duration: 1.7ms | Allocations: 665)
  Rendered application/_header.html.erb (Duration: 0.3ms | Allocations: 74)
  Rendering html template
  Rendered html template (Duration: 0.0ms | Allocations: 2)

谢谢 @gerhard :+1: