Files
2026-10-18 21:14:59 +08:00

24 lines
959 B
Go

// Copyright 2026 tamakyi. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package user
import (
"github.com/tamakyi/TamaBox/internal/context"
"github.com/tamakyi/TamaBox/internal/i18n"
)
// RestrictedProfile 提问箱暂停访问页(站方处置 L4)。
//
// 为什么单独一个公开页,而不是跳首页或登录页:
// - 跳首页会让访客以为链接失效;
// - 跳登录页会让人以为需要登录,而被处置箱主自己登录后仍然进不去,反复尝试;
// - 该页不暴露「谁被处置、为什么被处置」的细节,只给一句通用说明,避免二次传播。
//
// 路由必须注册在公开区(reqUserSignIn 之外),否则被处置箱主会先被要求登录再看到 404。
func RestrictedProfile(ctx context.Context) {
ctx.SetTitle(i18n.T(ctx.Lang(), "restricted.title"))
ctx.Success("user/restricted")
}